imstk::DataArray const begin/end methods
It would be useful to have const versions of imstk::DataArray::begin
and imstk::DataArray::end
. Yes, the existence of cbegin
and cend
are helpful, but I believe const begin
and end
would allow use of a const DataArray
in a range based for loop.
Similarly it would be useful to have these for imstk::VecDataArray
.
For reference std::vector
has both const begin
, non-const begin
, and const cbegin
https://en.cppreference.com/w/cpp/container/vector/begin