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).
I need to store in a variable, kilobytes or even megabytes of plain text,
Share
std::stringhas the member functionmax_size()which returns the maximum length of astd::stringin that implementation.