A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.tutorialspoint.com/cpp_standard_library/cpp_vector_destructor.htm below:

C++ Vector Library - ~vector() Function

C++ Vector Library - ~vector() Function Previous Quiz Next 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

Print Page

Previous

Next

Advertisements


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4