std::basic_string::empty
From cppreference.com
< cpp | string | 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] Exceptions
(none) | (until C++11) |
noexcept specification: noexcept |
(since C++11) |
[edit] Complexity
Constant.
[edit] See also
returns the number of characters (public member function) |