C++ List Library - ~list() Function
Description
The C++ destructor std::list::~list() destroys list object by deallocating it's memory.
Declaration
Following is the declaration for std::list::~list() function form std::list header.
C++98
~list();
Parameters
None
Return value
Destructor never returns value.
Exceptions
This member function never throws exception.
Time complexity
Linear i.e. O(n)
list.htm