std::dynarray::empty - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::dynarray::empty

From cppreference.com
< cpp‎ | container‎ | dynarray

[edit template]

bool empty() const; |  | (since {std})

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

### [edit] Parameters

(none)

### [edit] Return value

true if the container is empty, false otherwise

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Complexity

Constant.

### [edit] Example

[edit]
Template:cpp/container/dynarray/example empty

### See also

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/dynarray/empty&oldid=50482"
Category:

- unconditionally noexcept