erase

Function Details

size_type erase(const key_type &x)
 

Erase elements by key.

All key/data pairs with specified key x will be removed from underlying database. This function supports auto-commit.

Parameters

x

The key to remove from the container.

Return Value

The number of key/data pairs removed.

void erase(iterator pos)
 

Erase a key/data pair at specified position.

Parameters

pos

An valid iterator of this container to erase.

void erase(iterator first,
    iterator last)
 

Range erase.

Erase all key/data pairs within the valid range [first, last).

Parameters

last

The open boundary of the range.

first

The closed boundary of the range.

Group: Erase Functions

Class

db_multimap