Daily bit(e) of C++ | std::string
Daily bit(e) of C++ #374, The container for storing null-terminated narrow character strings: std::string.
The std::string is a container for storing null-terminated narrow character strings.
std::string provides very similar functionality to std::vector while maintaining the null-termination invariant on every operation.
Additionally, std::string also provides a couple of convenience methods (find, starts/ends_with, contains, substr).
Nice and helpful. What does it make a string to be a "narrow character" string vs a not one?