bool empty() const; | (since {std}) |
Checks if the container has no elements, i.e. whether begin() == end().
Parameters
(none).
Return value
true if the container is empty, false otherwise.
Exceptions
noexcept specification: noexceptComplexity
Constant.
Example
Template:cpp/container/dynarray/example empty
See also
| returns the number of elements (public member function) |
Please login to continue.