public member function

std::deque::~deque

<deque>
~deque();
Deque destructor
Destructs the container object. This calls each of the contained element's destructors, and dealocates all the storage capacity allocated by the deque container.

Complexity

Linear on deque::size (destructors).

Iterator validity

All iterators, pointers and references are invalidated.

Data races

The container and all its elements are modified.

Exception safety

No-throw guarantee: never throws exceptions.