Library Version 12.1.6.0

erase
Prev | Chapter 8. Db_multiset | Next

## 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 the 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

A 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

http://www.cplusplus.com/reference/set/multiset/erase/

### Class

db_multiset

Prev | Up | Next
insert | Home | operator=