C++ Map Library - ~map() Function



Description

The C++ destructor std::map::~map() destroys map object by deallocating it's memory.

Declaration

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

C++98

~map();

Parameters

None

Return value

Destructor never returns value.

Exceptions

This member function never throws exception.

Time complexity

Linear i.e. O(n)

map.htm
Advertisements