public member function
<deque>

std::deque::~deque

~deque();
Deque destructor
Destroys the container object.

This destroys all container elements, and deallocates all the storage capacity allocated by the deque container using its allocator.
This calls allocator_traits::destroy on each of the contained elements, and deallocates all the storage capacity allocated by the deque container using its allocator.

Complexity

Linear in 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.