Strings library
Strings library
The C++ strings library includes support for three general types of strings:
-
std::basic_string
- a templated class designed to manipulate strings of any character type. -
std::basic_string_view
(C++17) - a lightweight non-owning read-only view into a subsequence of a string. - Null-terminated strings - arrays of characters terminated by a special null character.
std::basic_string
The templated class std::basic_string
generalizes how sequences of character