bsl::basic_string<char8_t>::max_size

Return the maximal possible length of this string. Note that requests to create a string longer than this number of characters are guaranteed to raise a length_error exception.

Synopsis

Declared in <bslstl_string.h>

size_type
max_size() const noexcept;