std::basic_string_view<CharT,Traits>::max_size

constexpr size_type max_size() const noexcept;
(since C++17)

The largest possible number of char-like objects that can be referred to by a basic_string_view.

Parameters

(none).

Return value

Maximum number of characters.

Complexity

Constant.

See also

returns the number of characters
(public member function)
checks whether the view is empty
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/string/basic_string_view/max_size