list::~list


public member function
~list ( );

List destructor

Destructs the container object. This calls each of the contained element's destructors and deallocates the storage allocated for the elements in the list.

Complexity

Linear on list::size.