Teuchos: Add .data() method to Array*, for std::vector and Kokkos::View compatibility
Created by: mhoemmen
std::vector
and Kokkos::View
both have a .data()
instance method, that returns a raw pointer to the object's data. Teuchos memory management classes have a .getRawPtr()
method that returns the same thing. It would be nice if Teuchos::Array
, Teuchos::ArrayRCP
, and Teuchos::ArrayView
also had a .data()
method. That would make them compile-time interchangeable with a lot of code that uses std::vector
.
@trilinos/teuchos