Condividi tramite


multimap Members

Reference

Constructors

multimap

Constructs a multimap that is empty or that is a copy of all or part of some other multimap.

Typedefs

allocator_type

A type that represents the allocator class for the multimap object.

const_iterator

A type that provides a bidirectional iterator that can read a const element in the multimap.

const_pointer

A type that provides a pointer to a const element in a multimap.

const_reference

A type that provides a reference to a const element stored in a multimap for reading and performing const operations.

const_reverse_iterator

A type that provides a bidirectional iterator that can read any const element in the multimap.

difference_type

A signed integer type that can be used to represent the number of elements of a multimap in a range between elements pointed to by iterators.

iterator

A type that provides the difference between two iterators that refer to elements within the same multimap.

key_compare

A type that provides a function object that can compare two sort keys to determine the relative order of two elements in the multimap.

key_type

A type that describes the sort key object that constitutes each element of the multimap.

mapped_type

A type that represents the data type stored in a multimap.

pointer

A type that provides a pointer to a const element in a multimap.

reference

A type that provides a reference to an element stored in a multimap.

reverse_iterator

A type that provides a bidirectional iterator that can read or modify an element in a reversed multimap.

size_type

An unsigned integer type that provides a pointer to a const element in a multimap.

value_type

A type that provides a function object that can compare two elements as sort keys to determine their relative order in the multimap.

Member Functions

begin

Returns an iterator addressing the first element in the multimap.

clear

Erases all the elements of a multimap.

count

Returns the number of elements in a multimap whose key matches a parameter-specified key.

empty

Tests if a multimap is empty.

end

Returns an iterator that addresses the location succeeding the last element in a multimap.

equal_range

Finds the range of elements where the key of the element matches a specified value.

erase

Removes an element or a range of elements in a multimap from specified positions or removes elements that match a specified key.

find

Returns an iterator addressing the first location of an element in a multimap that has a key equivalent to a specified key.

get_allocator

Returns a copy of the allocator object used to construct the multimap.

insert

Inserts an element or a range of elements into a multimap.

key_comp

Retrieves a copy of the comparison object used to order keys in a multimap.

lower_bound

Returns an iterator to the first element in a multimap that with a key that is equal to or greater than a specified key.

max_size

Returns the maximum length of the multimap.

rbegin

Returns an iterator addressing the first element in a reversed multimap.

rend

Returns an iterator that addresses the location succeeding the last element in a reversed multimap.

size

Returns the number of elements in the multimap.

swap

Exchanges the elements of two multimaps.

upper_bound

Returns an iterator to the first element in a multimap that with a key that is greater than a specified key.

value_comp

The member function returns a function object that determines the order of elements in a multimap by comparing their key values.

See Also

Concepts

multimap Class

Thread Safety in the Standard C++ Library

Standard Template Library