std::basic_string_view<CharT,Traits>::empty (3) - Linux Manuals
std::basic_string_view<CharT,Traits>::empty: std::basic_string_view<CharT,Traits>::empty
NAME
std::basic_string_view<CharT,Traits>::empty - std::basic_string_view<CharT,Traits>::empty
Synopsis
constexpr bool empty() const noexcept; (since C++17)
[[nodiscard]] constexpr bool empty() const noexcept; (since C++20)
Checks if the view has no characters, i.e. whether size() == 0.
Parameters
(none)
Return value
true if the view is empty, false otherwise
Complexity
Constant.
Example
// Run this code
Possible output:
See also
size (public member function)
length
max_size (public member function)