Here is a great explanation of what a string_view object is.
Are there '_view' objects for any of the STL containers besides std::string?
Seems to me that it is an extremely useful thing to have. Imagine a std::vector_view
class that simply stores a start
iterator and a length
field. Not actually owning the underlying data allows for awesome efficiency improvements.