C++ Vector Library - ~vector() Function



Description

The C++ function std::vector::~vector() destroys container by deallocating container memory.

Declaration

Following is the declaration for std::vector::~vector() function form std::vector header.

~vector();

Parameters

None

Return value

Destructor never returns value.

Exceptions

This method never throws excpetion.

Time complexity

Linear i.e. O(n)

vector.htm
Advertisements