I need to store in a variable, kilobytes or even megabytes of plain text, so I want to know how many characters can fit in a standard string (aka std::string
plus string library).
std::string
has the member function max_size()
which returns the maximum length of a std::string
in that implementation.
It depends on your implementation. Try calling std::string::max_size()
and find out.
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