Is std::string a container class in standard c++ library, restricted to hold only char elements?
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With