BDE 4.14.0 Production release
|
#include <bslstl_multimap.h>
Classes | |
class | value_compare |
Public Types | |
typedef KEY | key_type |
typedef VALUE | mapped_type |
typedef pair< const KEY, VALUE > | value_type |
typedef COMPARATOR | key_compare |
typedef ALLOCATOR | allocator_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef AllocatorTraits::size_type | size_type |
typedef AllocatorTraits::difference_type | difference_type |
typedef AllocatorTraits::pointer | pointer |
typedef AllocatorTraits::const_pointer | const_pointer |
typedef BloombergLP::bslstl::TreeIterator< value_type, Node, difference_type > | iterator |
typedef BloombergLP::bslstl::TreeIterator< const value_type, Node, difference_type > | const_iterator |
typedef bsl::reverse_iterator< iterator > | reverse_iterator |
typedef bsl::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
multimap () | |
multimap (const COMPARATOR &comparator, const ALLOCATOR &basicAllocator=ALLOCATOR()) | |
multimap (const ALLOCATOR &basicAllocator) | |
multimap (const multimap &original) | |
multimap (BloombergLP::bslmf::MovableRef< multimap > original) | |
multimap (const multimap &original, const typename type_identity< ALLOCATOR >::type &basicAllocator) | |
multimap (BloombergLP::bslmf::MovableRef< multimap > original, const typename type_identity< ALLOCATOR >::type &basicAllocator) | |
template<class INPUT_ITERATOR > | |
multimap (INPUT_ITERATOR first, INPUT_ITERATOR last, const COMPARATOR &comparator=COMPARATOR(), const ALLOCATOR &basicAllocator=ALLOCATOR()) | |
template<class INPUT_ITERATOR > | |
multimap (INPUT_ITERATOR first, INPUT_ITERATOR last, const ALLOCATOR &basicAllocator) | |
~multimap () | |
Destroy this object. | |
multimap & | operator= (const multimap &rhs) |
multimap &operator=(BloombergLP::bslmf::MovableRef< multimap > rhs) BSLS_KEYWORD_NOEXCEPT_SPECIFICATION(AllocatorTraits iterator | begin () BSLS_KEYWORD_NOEXCEPT |
iterator | end () BSLS_KEYWORD_NOEXCEPT |
reverse_iterator | rbegin () BSLS_KEYWORD_NOEXCEPT |
reverse_iterator | rend () BSLS_KEYWORD_NOEXCEPT |
iterator | insert (const value_type &value) |
template<class ALT_VALUE_TYPE > | |
enable_if< is_convertible< ALT_VALUE_TYPE, value_type >::value, iterator >::type | insert (BSLS_COMPILERFEATURES_FORWARD_REF(ALT_VALUE_TYPE) value) |
iterator | insert (const_iterator hint, const value_type &value) |
template<class ALT_VALUE_TYPE > | |
enable_if< is_convertible< ALT_VALUE_TYPE, value_type >::value, iterator >::type | insert (const_iterator hint, BSLS_COMPILERFEATURES_FORWARD_REF(ALT_VALUE_TYPE) value) |
template<class INPUT_ITERATOR > | |
void | insert (INPUT_ITERATOR first, INPUT_ITERATOR last) |
template<class... Args> | |
iterator | emplace (Args &&... args) |
template<class... Args> | |
iterator | emplace_hint (const_iterator hint, Args &&... args) |
iterator | erase (const_iterator position) |
iterator | erase (iterator position) |
size_type | erase (const key_type &key) |
iterator | erase (const_iterator first, const_iterator last) |
iterator | find (const key_type &key) |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, iterator >::type | find (const LOOKUP_KEY &key) |
iterator | lower_bound (const key_type &key) |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, iterator >::type | lower_bound (const LOOKUP_KEY &key) |
iterator | upper_bound (const key_type &key) |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, iterator >::type | upper_bound (const LOOKUP_KEY &key) |
bsl::pair< iterator, iterator > | equal_range (const key_type &key) |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, pair< iterator, iterator > >::type | equal_range (const LOOKUP_KEY &key) |
allocator_type | get_allocator () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | begin () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | end () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | rbegin () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | rend () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | cbegin () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | cend () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | crbegin () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | crend () const BSLS_KEYWORD_NOEXCEPT |
bool | contains (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, bool >::type | contains (const LOOKUP_KEY &key) const |
bool | empty () const BSLS_KEYWORD_NOEXCEPT |
size_type | size () const BSLS_KEYWORD_NOEXCEPT |
Return the number of elements in this multimap. | |
size_type | max_size () const BSLS_KEYWORD_NOEXCEPT |
key_compare | key_comp () const |
value_compare | value_comp () const |
const_iterator | find (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, const_iterator >::type | find (const LOOKUP_KEY &key) const |
size_type | count (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, size_type >::type | count (const LOOKUP_KEY &key) const |
const_iterator | lower_bound (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, const_iterator >::type | lower_bound (const LOOKUP_KEY &key) const |
const_iterator | upper_bound (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, const_iterator >::type | upper_bound (const LOOKUP_KEY &key) const |
pair< const_iterator, const_iterator > | equal_range (const key_type &key) const |
template<class LOOKUP_KEY > | |
bsl::enable_if< BloombergLP::bslmf::IsTransparentPredicate< COMPARATOR, LOOKUP_KEY >::value, pair< const_iterator, const_iterator > >::type | equal_range (const LOOKUP_KEY &key) const |
Public Attributes | |
void swap(multimap &other) BSLS_KEYWORD_NOEXCEPT_SPECIFICATION(AllocatorTraits void | clear () BSLS_KEYWORD_NOEXCEPT |
This class template implements a value-semantic container type holding an ordered sequence of key-value pairs having possibly duplicate keys that provide a mapping from keys (of the template parameter type, KEY
) to their associated values (of another template parameter type, VALUE
).
This class:
const
thread-safe For terminology see bsldoc_glossary .See bslstl_multimap
typedef ALLOCATOR bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::allocator_type |
typedef BloombergLP::bslstl::TreeIterator<const value_type, Node, difference_type> bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::const_iterator |
typedef AllocatorTraits::const_pointer bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::const_pointer |
typedef const value_type& bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::const_reference |
typedef bsl::reverse_iterator<const_iterator> bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::const_reverse_iterator |
typedef AllocatorTraits::difference_type bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::difference_type |
typedef BloombergLP::bslstl::TreeIterator<value_type, Node, difference_type> bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::iterator |
typedef COMPARATOR bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::key_compare |
typedef KEY bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::key_type |
typedef VALUE bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::mapped_type |
typedef AllocatorTraits::pointer bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::pointer |
typedef value_type& bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::reference |
typedef bsl::reverse_iterator<iterator> bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::reverse_iterator |
typedef AllocatorTraits::size_type bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::size_type |
typedef pair<const KEY, VALUE> bsl::multimap< KEY, VALUE, COMPARATOR, ALLOCATOR >::value_type |
|
inline |
|
inlineexplicit |
Create an empty multimap. Optionally specify a comparator
used to order key-value pairs contained in this object. If comparator
is not supplied, a default-constructed object of the (template parameter) type COMPARATOR
is used. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is not supplied, a default-constructed object of the (template parameter) type ALLOCATOR
is used. If the type ALLOCATOR
is bsl::allocator
(the default), then basicAllocator
, if supplied, shall be convertible to bslma::Allocator *
. If the type ALLOCATOR
is bsl::allocator
and basicAllocator
is not supplied, the currently installed default allocator is used.
|
inlineexplicit |
Create an empty multimap that uses the specified basicAllocator
to supply memory. Use a default-constructed object of the (template parameter) type COMPARATOR
to order the key-value pairs contained in this multimap. Note that a bslma::Allocator *
can be supplied for basicAllocator
if the (template parameter) ALLOCATOR
is bsl::allocator
(the default).
|
inline |
Create a multimap having the same value as the specified original
object. Use a copy of original.key_comp()
to order the key-value pairs contained in this multimap. Use the allocator returned by 'bsl::allocator_traits<ALLOCATOR>:: select_on_container_copy_construction(original.get_allocator())' to allocate memory. This method requires that the (template parameter) types KEY
and VALUE
both be copy-insertable
into this multimap (see {Requirements on KEY
and VALUE
}).
|
inline |
Create a multimap having the same value as the specified original
object by moving (in constant time) the contents of original
to the new multimap. Use a copy of original.key_comp()
to order the key-value pairs contained in this multimap. The allocator associated with original
is propagated for use in the newly-created multimap. original
is left in a valid but unspecified state.
|
inline |
Create a multimap having the same value as the specified original
object that uses the specified basicAllocator
to supply memory. Use a copy of original.key_comp()
to order the key-value pairs contained in this multimap. This method requires that the (template parameter) types KEY
and VALUE
both be copy-insertable
into this multimap (see {Requirements on KEY
and VALUE
}). Note that a bslma::Allocator *
can be supplied for basicAllocator
if the (template parameter) ALLOCATOR
is bsl::allocator
(the default).
|
inline |
Create a multimap having the same value as the specified original
object that uses the specified basicAllocator
to supply memory. The contents of original
are moved (in constant time) to the new multimap if basicAllocator == original.get_allocator()
, and are move-inserted (in linear time) using basicAllocator
otherwise. original
is left in a valid but unspecified state. Use a copy of original.key_comp()
to order the key-value pairs contained in this multimap. This method requires that the (template parameter) types KEY
and VALUE
both be move-insertable
into this multimap (see {Requirements on KEY
and VALUE
}). Note that a 'bslma::Allocator *can be supplied for
basicAllocator' if the (template parameter) ALLOCATOR
is bsl::allocator
(the default).
|
inline |
Create a multimap, and insert each value_type
object in the sequence starting at the specified first
element, and ending immediately before the specified last
element. Optionally specify a comparator
used to order key-value pairs contained in this object. If comparator
is not supplied, a default-constructed object of the (template parameter) type COMPARATOR
is used. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is not supplied, a default-constructed object of the (template parameter) type ALLOCATOR
is used. If the type ALLOCATOR
is bsl::allocator
(the default), then basicAllocator
, if supplied, shall be convertible to bslma::Allocator *
. If the type ALLOCATOR
is bsl::allocator
and basicAllocator
is not supplied, the currently installed default allocator is used. If the sequence first
to last
is ordered according to comparator
, then this operation has O[N]
complexity, where N
is the number of elements between first
and last
; otherwise, this operation has O[N * log(N)]
complexity. The (template parameter) type INPUT_ITERATOR
shall meet the requirements of an input iterator defined in the C++11 standard [24.2.3] providing access to values of a type convertible to value_type
, and value_type
must be emplace-constructible
from *i
into this multimap, where i
is a dereferenceable iterator in the range [first .. last)
(see {Requirements on KEY
and VALUE
}). The behavior is undefined unless first
and last
refer to a sequence of valid values where first
is at a position at or before last
.
|
inline |
|
inline |
|
inline |
Return an iterator providing modifiable access to the first value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or the end
iterator if this multimap is empty.
|
inline |
Return an iterator providing non-modifiable access to the first value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or the end
iterator if this multimap is empty.
|
inline |
Return an iterator providing non-modifiable access to the first value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or the cend
iterator if this multimap is empty.
|
inline |
Return an iterator providing non-modifiable access to the past-the-end element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
Return true
if this multimap contains an element whose key is equivalent to the specified key
.
|
inline |
Return true
if this multimap contains an element whose key is equivalent to the specified key
.
Note: implemented inline due to Sun CC compilation error
|
inline |
Return the number of value_type
objects within this multimap whose keys are equivalent to the specified key
.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return the number of value_type
objects within this multimap whose keys are equivalent to the specified key
.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a reverse iterator providing non-modifiable access to the last value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or rend
if this multimap is empty.
|
inline |
Return a reverse iterator providing non-modifiable access to the prior-to-the-beginning element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
Insert into this multimap a newly-created value_type
object, constructed by forwarding get_allocator()
(if required) and the specified (variable number of) args
to the corresponding constructor of value_type
. Return an iterator referring to the newly created and inserted object in this multimap. This method requires that the (template parameter) types KEY
and VALUE
both be emplace-constructible
from args
(see {Requirements on KEY
and VALUE
}).
|
inline |
Insert into this multimap a newly-created value_type
object, constructed by forwarding get_allocator()
(if required) and the specified (variable number of) args
to the corresponding constructor of value_type
(in amortized constant time if the specified hint
is a valid immediate successor to the value_type
object constructed from args
). Return an iterator referring to the newly created and inserted object in this multimap. If hint
is not a valid immediate successor to the value_type
object implied by args
, this operation has O[log(N)]
complexity where N
is the size of this multimap. This method requires that the (template parameter) types KEY
and VALUE
both be emplace-constructible
from args
(see {Requirements on KEY
and VALUE
}). The behavior is undefined unless hint
is an iterator in the range [begin() .. end()]
(both endpoints included).
|
inline |
Return true
if this multimap contains no elements, and false
otherwise.
|
inline |
Return an iterator providing modifiable access to the past-the-end element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
Return an iterator providing non-modifiable access to the past-the-end element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
Return a pair of iterators providing modifiable access to the sequence of value_type
objects in this multimap whose keys are equivalent to the specified key
, where the first iterator is positioned at the start of the sequence and the second is positioned one past the end of the sequence. The first returned iterator will be lower_bound(key)
, the second returned iterator will be upper_bound(key)
, and, if this multimap contains no value_type
object with an equivalent key, then the two returned iterators will have the same value.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a pair of iterators providing non-modifiable access to the sequence of value_type
objects in this multimap whose keys are equivalent to the specified key
, where the first iterator is positioned at the start of the sequence and the second iterator is positioned one past the end of the sequence. The first returned iterator will be lower_bound(key)
, the second returned iterator will be upper_bound(key)
, and, if this multimap contains no value_type
objects having keys equivalent to key
, then the two returned iterators will have the same value.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a pair of iterators providing modifiable access to the sequence of value_type
objects in this multimap whose keys are equivalent to the specified key
, where the first iterator is positioned at the start of the sequence and the second is positioned one past the end of the sequence. The first returned iterator will be lower_bound(key)
, the second returned iterator will be upper_bound(key)
, and, if this multimap contains no value_type
object with an equivalent key, then the two returned iterators will have the same value.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a pair of iterators providing non-modifiable access to the sequence of value_type
objects in this multimap whose keys are equivalent to the specified key
, where the first iterator is positioned at the start of the sequence and the second iterator is positioned one past the end of the sequence. The first returned iterator will be lower_bound(key)
, the second returned iterator will be upper_bound(key)
, and, if this multimap contains no value_type
objects having keys equivalent to key
, then the two returned iterators will have the same value.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Remove from this multimap all value_type
objects whose keys are equivalent to the specified key
, if such entries exist, and return the number of erased objects; otherwise, if there is no value_type
objects having an equivalent key, return 0 with no other effect. This method invalidates only iterators and references to the removed element and previously saved values of the end()
iterator.
|
inline |
|
inline |
|
inline |
Remove from this multimap the value_type
object at the specified position
, and return an iterator referring to the element immediately following the removed element, or to the past-the-end position if the removed element was the last element in the sequence of elements maintained by this multimap. This method invalidates only iterators and references to the removed element and previously saved values of the end()
iterator. The behavior is undefined unless position
refers to a value_type
object in this multimap.
|
inline |
Return an iterator providing modifiable access to the first value_type
object in this multimap whose key is equivalent to the specified key
, if such an entry exists, and the past-the-end (end
) iterator otherwise.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first value_type
object having the specified key
in the ordered sequence maintained by this multimap, if such an object exists, and the past-the-end (end
) iterator otherwise.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing modifiable access to the first value_type
object in this multimap whose key is equivalent to the specified key
, if such an entry exists, and the past-the-end (end
) iterator otherwise.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first value_type
object having the specified key
in the ordered sequence maintained by this multimap, if such an object exists, and the past-the-end (end
) iterator otherwise.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return (a copy of) the allocator used for memory allocation by this multimap.
|
inline |
|
inline |
Insert the specified value
into this multimap. If a range containing elements equivalent to value
already exists, insert the value
at the end of that range. Return an iterator referring to the newly inserted value_type
object. This method requires that the (template parameter) types KEY
and VALUE
both be copy-insertable
into this multimap (see {Requirements on KEY
and VALUE
}).
|
inline |
|
inline |
Insert the specified value
into this multimap (in amortized constant time if the specified hint
is a valid immediate successor to the key of value
). Return an iterator referring to the newly inserted value_type
object. If hint
is not a valid immediate successor to the key of value
, this operation has O[log(N)]
complexity, where N
is the size of this multimap. This method requires that the (template parameter) types KEY
and VALUE
both be copy-insertable
into this multimap (see {Requirements on KEY
and VALUE
}). The behavior is undefined unless hint
is an iterator in the range [begin() .. end()]
(both endpoints included).
|
inline |
Insert into this multimap the value of each value_type
object in the range starting at the specified first
iterator and ending immediately before the specified last
iterator. The (template parameter) type INPUT_ITERATOR
shall meet the requirements of an input iterator defined in the C++11 standard [24.2.3] providing access to values of a type convertible to value_type
, and value_type
must be emplace-constructible
from *i
into this multimap, where i
is a dereferenceable iterator in the range [first .. last)
(see {Requirements on KEY
and VALUE
}). The behavior is undefined unless first
and last
refer to a sequence of valid values where first
is at a position at or before last
.
|
inline |
Return the key-comparison functor (or function pointer) used by this multimap; if a comparator was supplied at construction, return its value, otherwise return a default constructed key_compare object. Note that this comparator compares objects of type KEY
, which is the key part of the value_type
objects contained in this multimap.
|
inline |
Return an iterator providing modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater-than or equal-to the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than or equal-to key
. Note that this function returns the first position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater-than or equal-to the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than or equal-to key
. Note that this function returns the first position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater-than or equal-to the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than or equal-to key
. Note that this function returns the first position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater-than or equal-to the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than or equal-to key
. Note that this function returns the first position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a theoretical upper bound on the largest number of elements that this multimap could possibly hold. Note that there is no guarantee that the multimap can successfully grow to the returned size, or even close to that size without running out of resources.
|
inline |
Assign to this object the value and comparator of the specified rhs
object, propagate to this object the allocator of rhs
if the ALLOCATOR
type has trait propagate_on_container_copy_assignment
, and return a reference providing modifiable access to this object. If an exception is thrown, *this
is left in a valid but unspecified state. This method requires that the (template parameter) types KEY
and VALUE
both be copy-assignable
and copy-insertable
into this multimap (see {Requirements on KEY
and VALUE
}).
|
inline |
Return a reverse iterator providing modifiable access to the last value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or rend
if this multimap is empty.
|
inline |
Return a reverse iterator providing non-modifiable access to the last value_type
object in the ordered sequence of value_type
objects maintained by this multimap, or rend
if this multimap is empty.
|
inline |
Return a reverse iterator providing modifiable access to the prior-to-the-beginning element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
Return a reverse iterator providing non-modifiable access to the prior-to-the-beginning element in the ordered sequence of value_type
objects maintained by this multimap.
|
inline |
|
inline |
Return an iterator providing modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater than the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than key
. Note that this function returns the last position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater than the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than key
. Note that this function returns the last position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater than the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than key
. Note that this function returns the last position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return an iterator providing non-modifiable access to the first (i.e., ordered least) value_type
object in this multimap whose key is greater than the specified key
, and the past-the-end iterator if this multimap does not contain a value_type
object whose key is greater-than key
. Note that this function returns the last position before which a value_type
object having an equivalent key could be inserted into the ordered sequence maintained by this multimap, while preserving its ordering.
Note: implemented inline due to Sun CC compilation error.
|
inline |
Return a functor for comparing two value_type
objects by comparing their respective keys using key_comp()
. Note that this comparator compares objects of type value_type
(i.e., 'pair<const KEY, VALUE>').
|
inline |
Remove from this multimap the value_type
objects starting at the specified first
position up to, but including the specified last
position, and return last
. This method invalidates only iterators and references to the removed element and previously saved values of the end()
iterator. The behavior is undefined unless first
and last
either refer to elements in this multimap or are the end
iterator, and the first
position is at or before the last
position in the ordered sequence provided by this container. Remove all entries from this multimap. Note that the multimap is empty after this call, but allocated memory may be retained for future use.