[ Web Proxy ]
URL:
Viewing: https://ko.cppreference.com/cpp/container/map [Back]  [Original]

std::map - cppreference.com
cppreference.com

std::map

cppreference.com
<tbody> </tbody>
<map> .
template< class Key, class T, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T> > > class map;

std::map Key Value . Key Compare . , . Map - .

std::map meets the requirements of Container, AllocatorAwareContainer, AssociativeContainer and ReversibleContainer.

Member types

Member type Definition
key_type [edit]
mapped_type T [edit]
value_type std::pair<const Key, T> [edit]
size_type (unsigned int) ( std::size_t) [edit]
difference_type (signed int) ( std::ptrdiff_t) [edit]
key_compare Compare [edit]
allocator_type [edit]
reference Allocator::reference (until C++11)
value_type& (since C++11) [edit]
const_reference Allocator::const_reference (until C++11)
const value_type& (since C++11) [edit]
pointer Allocator::pointer (until C++11)
std::allocator_traits<Allocator>::pointer (since C++11) [edit]
const_pointer Allocator::const_pointer (until C++11)
std::allocator_traits<Allocator>::const_pointer (since C++11) [edit]
iterator BidirectionalIterator [edit]
const_iterator (constant) (iterator) [edit]
reverse_iterator std::reverse_iterator<iterator> [edit]
const_reverse_iterator std::reverse_iterator<const_iterator> [edit]

Member classes

compares objects of type value_type
(class) [edit]

Member functions

map .
(public member function) [edit]
map .
(public member function) [edit]
.
(public member function) [edit]
.
(public member function) [edit]
Element access
(C++11)
access specified element with bounds checking
(public member function) [edit]

(public member function) [edit]
Iterators
(iterator) .
(public member function) [edit]
(iterator) .
(public member function) [edit]
(reverse iterator) .
(public member function) [edit]
(reverse iterator) .
(public member function) [edit]
Capacity
.
(public member function) [edit]
.
(public member function) [edit]
.
(public member function) [edit]
Modifiers
.
(public member function) [edit]
.
(public member function) [edit]
(C++11)
.
(public member function) [edit]
constructs elements in-place using a hint
(public member function) [edit]

(public member function) [edit]

(public member function) [edit]
Lookup
.
(public member function) [edit]
.
(public member function) [edit]
returns range of elements matching a specific key
(public member function) [edit]
returns an iterator to the first element not less than the given value
(public member function) [edit]
returns an iterator to the first element greater than a certain value
(public member function) [edit]
Observers
returns the function that compares keys
(public member function) [edit]
returns the function that compares keys in objects of type value_type
(public member function) [edit]

Non-member functions

lexicographically compares the values in the map
(function template) [edit]
specializes the std::swap algorithm
(function template) [edit]

Web Proxy Viewer  |  New URL  |  Original Page