C++ Forward_list Library - ~forward_list() Function


Advertisements

Description

The C++ function std::forward_list::~forward_list() destroys list object by deallocating it's memory.

Declaration

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

C++11

~forward_list()

Parameters

None

Return value

Destructor never returns value.

Exceptions

This member function never throws exception.

Time complexity

Linear i.e. O(n)

forward_list.htm
Advertisements