public member function
Destroy forward_list object
Destroys the container object.
This destroys all container elements, and deallocates all the storage capacity allocated by the forward_list
container using its allocator
Linear in the container size (destructors).
All iterators, pointers and references are invalidated.
The container and all its elements are modified.
No-throw guarantee: never throws exceptions.