std::basic_string_view<CharT,Traits>::max_size - cppreference.com (original) (raw)
| 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.
[edit] Parameters
(none)
[edit] Return value
Maximum number of characters.
[edit] Complexity
Constant.
[edit] Example
Possible output:
9223372036854775807 <- numeric_limits::max() 4611686018427387899 <- string_view::max_size() 4611686018427387899 <- basic_string_view::max_size() 2305843009213693949 <- basic_string_view::max_size() 1152921504606846974 <- wstring_view::max_size() 1152921504606846974 <- basic_string_view::max_size()
[edit] See also
| | returns the number of characters (public member function) [edit] | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | | checks whether the view is empty (public member function) [edit] | | | returns the maximum number of characters (public member function of std::basic_string<CharT,Traits,Allocator>) [edit] |