Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/map"

From cppreference.com
< cpp‎ | container
m (Text replace - "{{dcl list begin}} {{dcl list h1 | Member functions}}" to "===Member functions=== {{dcl list begin}}")
m (Text replace - "{{tdcl list begin}} {{tdcl list h1 | Member types}}" to "===Member types=== {{tdcl list begin}}")
Line 12: Line 12:
 
Map is an associative container that contains a sorted list of unique key-value pairs. That list is sorted according keys of the elements.  
 
Map is an associative container that contains a sorted list of unique key-value pairs. That list is sorted according keys of the elements.  
  
 +
===Member types===
 
{{tdcl list begin}}
 
{{tdcl list begin}}
{{tdcl list h1 | Member types}}
 
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list template | cpp/container/tdcl list key_type | map}}
 
{{tdcl list template | cpp/container/tdcl list key_type | map}}

Revision as of 16:07, 18 August 2011

Template:cpp/container/map/sidebar

Defined in header <map>
template<

    class Key,
    class T,
    class Compare = std::less<Key>,
    class Allocator = std::allocator<std::pair<const Key, T> >

> class map;

Map is an associative container that contains a sorted list of unique key-value pairs. That list is sorted according keys of the elements.

Contents

Member types

Template:tdcl list begin Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list end


Member functions

Template:cpp/container/dcl list constructorTemplate:cpp/container/dcl list destructorTemplate:cpp/container/dcl list operator=Template:cpp/container/dcl list get allocatorTemplate:cpp/container/dcl list atTemplate:cpp/container/dcl list operator atTemplate:cpp/container/dcl list beginTemplate:cpp/container/dcl list endTemplate:cpp/container/dcl list rbeginTemplate:cpp/container/dcl list rendTemplate:cpp/container/dcl list emptyTemplate:cpp/container/dcl list sizeTemplate:cpp/container/dcl list max sizeTemplate:cpp/container/dcl list clearTemplate:cpp/container/dcl list insertTemplate:cpp/container/dcl list emplaceTemplate:cpp/container/dcl list emplace hintTemplate:cpp/container/dcl list eraseTemplate:cpp/container/dcl list swapTemplate:cpp/container/dcl list countTemplate:cpp/container/dcl list findTemplate:cpp/container/dcl list equal rangeTemplate:cpp/container/dcl list lower boundTemplate:cpp/container/dcl list upper boundTemplate:cpp/container/dcl list key compTemplate:cpp/container/dcl list value compTemplate:cpp/container/dcl list operator compTemplate:cpp/container/dcl list std swap
Element access
Iterators
Capacity
Modifiers
Lookup
Observers

Non-member functions