C++ <vector> - ~vector() Function
The C++ vector::~vector function is used to destroy the vector. The destructors of the elements are called and the used storage is deallocated.
Note:: If the elements of the vector are pointers, the pointed-to objects are not destroyed.
No parameter is required.
Linear i.e, Θ(n).
Never throws exceptions.
❮ C++ <vector> Library