std::string (C++)

std::string is the C++ standard library type for text. It stores a sequence of characters and, unlike C-style char arrays, manages its own memory and can…