std::basic_string_view<CharT,Traits>::size,std::basic_string_view<CharT,Traits>::length (3) - Linux Manuals
std::basic_string_view<CharT,Traits>::size,std::basic_string_view<CharT,Traits>::length: std::basic_string_view<CharT,Traits>::size,std::basic_string_view<CharT,Traits>::length
NAME
std::basic_string_view<CharT,Traits>::size,std::basic_string_view<CharT,Traits>::length - std::basic_string_view<CharT,Traits>::size,std::basic_string_view<CharT,Traits>::length
Synopsis
constexpr size_type size() const noexcept; (since C++17)
constexpr size_type length() const noexcept; (since C++17)
Returns the number of CharT elements in the view, i.e. std::distance(begin(), end()).
Parameters
(none)
Return value
The number of CharT elements in the view.
Complexity
Constant.
Example
// Run this code
Possible output:
See also
empty (public member function)
max_size (public member function)