Namespaces
Variants

std::queue<T,Container>::~queue

From cppreference.com
 
 
 
 
~queue();
(implicitly declared)

Destroys the underlying container.

Complexity

Same as the destructor of the underlying container.

Notes

The underlying container is in charge of destroying the elements. The elements need not be destroyed in the FIFO order.