cpp/string/basic string/max size

Returns the maximum number of elements the string is able to hold due to system or library implementation limitations, i.e. for the largest string.

Parameters
(none)

Return value
Maximum number of characters.

Complexity
Constant.