An introduction to
Modern C++ In-Depth — Is string_view Worth It?
by Michael Kristofik
From the article:
std::string_viewmakes it easier to write generic code that can accept read-only references to character sequences, regardless of the underlying container that holds that data. ... However, like normal references, there is potential for misuse.
Add a Comment