I have a bunch of typed data in consecutive memory that I got as a T *; and I also know the number of elements (as a std::size_t although it doesn't matter much).
I'd like to use some single type or data structure to represent my stretch of typed data.
Now, what I have is the information for constructing...
- A gsl::span<T>, but with ownership.
- A gsl::owner<T *>, but with a size.
What type/structure/container would I use to represent all of my information about this data?
Notes:
- Obviously I'm ok with using GSL constructs; stuff in C++2a or Boost is also fine.
- I was thinking of a chimera of ownerandspan- perhapsgsl::owner<gsl::span<T>>; but I don't really like this idea too much.
 
    