stl:vector:clear

C++ Reference

clear

Syntax:

    #include <vector>
    void clear();

The function clear() deletes all of the elements in the vector.

clear() runs in linear time.

Related Topics: erase