public member function

std::list::~list

<list>
~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.