public member function

std::forward_list::~forward_list

<forward_list>
~forward_list();
Destroy forward_list object
Destructs the container object. This calls each of the contained element's destructors, and dealocates all the storage capacity allocated by the forward_list container.

Complexity

Linear on the container size (destructors).

Iterator validity

All iterators, pointers and references are invalidated.