Strings library
The C++ strings library includes support for two general types of strings:
- std::basic_string - a templated class that encapsulates common string operations
- Null-terminated strings - arrays of characters terminated by a special token
Contents |
std::basic_string
The templated class std::basic_string generalizes how sequences of characters are manipulated and stored. String creation, manipulation, and destruction are all handled by a convenient set of class methods and friend functions.
Several specializations of std::basic_string are provided for commonly-used types: