std::basic_string_view<CharT,Traits>::max_size (3) - Linux Manuals

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

NAME

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

Synopsis


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
size (public member function)
length
       checks whether the view is empty
empty (public member function)