Teuchos::ArrayView constructor should set its pointer to null if input pointer is nonnull but length is zero
Created by: mhoemmen
@trilinos/teuchos @trilinos/tpetra @kddevin @jhux2 @csiefer2
See #4225 (closed) discussion.
Expectations
It should be trivial to create a Teuchos::ArrayView from an std::vector or (host) Kokkos::View. Users should not have to test whether the pointer is null if the length is zero.
Related Issues
- Related to #4225 (closed)