Namespaces
Variants
Views
Actions

std::dynarray::empty

From cppreference.com
< cpp‎ | container‎ | dynarray
bool empty() const;
(since {std})

Checks if the container has no elements, i.e. whether begin() == end().

Contents

[edit] Parameters

(none)

[edit] Return value

true if the container is empty, false otherwise

[edit] Exceptions

noexcept specification:  
noexcept
  

[edit] Complexity

Constant.

[edit] Example

Template:cpp/container/dynarray/example empty

See also

returns the number of elements
(public member function) [edit]