std::string a container

c++, containers

Solution

It's a typedef of `std::basic_string<char>`, actually. `std::basic_string` is a container class specifically designed for string operations. This container can be used for wide characters (`wchar_t`) as well; for that case its typedef would be `wstring`.

Problem

Is std::string a container class in standard c++ library, restricted to hold only char elements?

Original source