Dela via


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.

multimap::cbegin

Returns a const iterator addressing the first element in the multimap.

multimap::cend

Returns a const iterator that addresses the location succeeding the last element in a 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.

multimap::crbegin

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

multimap::crend

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

multimap::emplace

Inserts an element constructed in place into a multimap.

multimap::emplace_hint

Inserts an element constructed in place into a multimap, with a placement hint

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.

Operators

multimap::operator=

Replaces the elements of a multimap with a copy of another multimap.

See Also

Reference

multimap Class

Thread Safety in the Standard C++ Library

Standard Template Library