how long can a c++ string be

C++
// A C++ string can have up to 4294967295 characters
Source

Also in C++: