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().
Parameters
(none)
Return value
true if the string is empty, false otherwise
Exceptions
| (none) | (until C++11) |
| noexcept specification: noexcept |
(since C++11) |
Complexity
Constant.