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

◆ empty()

template<typename _CharT, typename _Traits, typename _Alloc, template< typename, typename, typename > class _Base>
bool __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::empty ( ) const
inlinenodiscardnoexcept

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

Definition at line 528 of file vstring.h.

529 { return this->size() == 0; }
size_type size() const noexcept
Returns the number of characters in the string, not including any null-termination.
Definition vstring.h:431