clear

Syntax:

    #include <set>
    void clear();

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

Related Topics: (C++ Lists) erase