Return the maximum possible length of this string.

Synopsis

Declared in <bslstl_string.h>

size_type
max_size() const noexcept;

Description

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.

Return Value

maximum representable length of this string

Created with MrDocs