public member function
<vector>

std::vector::~vector

~vector();
Vector destructor
Destroys the container object.

This destroys all container elements, and deallocates all the storage capacity allocated by the vector using its allocator.
This calls allocator_traits::destroy on each of the contained elements, and deallocates all the storage capacity allocated by the vector using its allocator.


复杂度

Linear in vector::size (destructors).

迭代器有效性

所有迭代器、指针和引用都将失效。

数据竞争

The container and all its elements are modified.

异常安全

无异常保证: 绝不抛出异常。