...

/

The std::basic_string_view Type

The std::basic_string_view Type

std::string_view is built upon the std::basic_string_view type. We'll see the implementation below.

We'll cover the following...

Although we talk about string_view, it’s important to know that this is only a specialisation of a template class called basic_string_view:

Press + to interact
template<
class CharT,
class Traits = std::char_traits<CharT>
> class basic_string_view;

Traits class is used to abstract the operations on the ...