clear

Syntax:

    #include <deque>
    void clear();

The function clear() deletes all of the elements in the deque. clear() runs in linear time.

Related Topics: erase