Namespaces
Variants
Views
Actions

std::basic_string::empty

From cppreference.com
 
 
 
std::basic_string
 
bool empty() const;

Checks if the string has no characters, i.e. whether begin() == end().

Contents

[edit] Parameters

(none)

[edit] Return value

true if the string is empty, false otherwise

[edit] Complexity

Constant

[edit] See also

returns the number of characters
(public member function) [edit]
returns the length of the string
(public member function) [edit]