libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ empty() [2/2]

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::basic_string< _CharT, _Traits, _Alloc >::empty ( ) const
inlinenodiscardnoexcept

Returns true if the string is empty. Equivalent to *this == "".

Definition at line 1116 of file cow_string.h.

1117 { return this->size() == 0; }
constexpr size_type size() const noexcept
Returns the number of characters in the string, not including any null-termination.