Difference between revisions of "cpp/container/multimap"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, it, pt, ru) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 17: | Line 17: | ||
===Member types=== | ===Member types=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc hitem | Member type | Definition}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list key_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list mapped_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list value_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list size_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list difference_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list key_compare | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list allocator_type | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list reference | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list const_reference | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list pointer | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list const_pointer | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list iterator | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list const_iterator | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list reverse_iterator | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list const_reverse_iterator | multimap}} |
− | {{ | + | {{dsc end}} |
===Member classes=== | ===Member classes=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list value_compare | multimap}} |
− | {{ | + | {{dsc end}} |
===Member functions=== | ===Member functions=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list constructor | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list destructor | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list operator{{=}} | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list get_allocator | multimap}} |
− | {{ | + | {{dsc h2 | Iterators}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list begin | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list end | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list rbegin | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list rend | multimap}} |
− | {{ | + | {{dsc h2 | Capacity}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list empty | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list size | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list max_size | multimap}} |
− | {{ | + | {{dsc h2 | Modifiers}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list clear | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list insert | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list emplace | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list emplace_hint | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list erase | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list swap | multimap}} |
− | {{ | + | {{dsc h2 | Lookup}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list count | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list find | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list equal_range | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list lower_bound | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list upper_bound | multimap}} |
− | {{ | + | {{dsc h2 | Observers}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list key_comp | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list value_comp | multimap}} |
− | {{ | + | {{dsc end}} |
===Non-member functions=== | ===Non-member functions=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list operator_cmp | multimap}} |
− | {{ | + | {{dsc inc | cpp/container/dcl list swap2 | multimap}} |
− | {{ | + | {{dsc end}} |
[[de:cpp/container/multimap]] | [[de:cpp/container/multimap]] |
Revision as of 18:40, 31 May 2013
Defined in header <map>
|
||
template< class Key, |
||
Multimap is an associative container that contains a sorted list of key-value pairs. Sorting is done according to the comparison function Compare
, applied to the keys. Search, insertion, and removal operations have logarithmic complexity.
The order of the key-value pairs whose keys compare equivalent is the order of insertion and does not change. (since C++11)
std::multimap
meets the requirements of Template:concept, Template:concept, Template:concept and Template:concept.
Contents |