maximum size of std::string code example Example: how long can a c++ string be // A C++ string can have up to 4294967295 characters