template < class Key, // unordered_map::key_type class T, // unordered_map::mapped_type class Hash = hash<Key>, // unordered_map::hasher class Pred = equal_to<Key>, // unordered_map::key_equal class Alloc = allocator< pair<const Key,T> > // unordered_map::allocator_type > class unordered_map;
|
|
|
|
|
|
member type | definition | notes |
---|---|---|
key_type | the first template parameter (Key) | |
mapped_type | the second template parameter (T) | |
value_type | pair<const key_type,mapped_type> | |
hasher | the third template parameter (Hash) | defaults to: hash<key_type> |
key_equal | the fourth template parameter (Pred) | defaults to: equal_to<key_type> |
allocator_type | the fifth template parameter (Alloc) | defaults to: allocator<value_type> |
reference | Alloc::reference | |
const_reference | Alloc::const_reference | |
pointer | Alloc::pointer | for the default allocator: value_type* |
const_pointer | Alloc::const_pointer | for the default allocator: const value_type* |
iterator | a forward iterator to value_type | |
const_iterator | a forward iterator to const value_type | |
local_iterator | a forward iterator to value_type | |
const_local_iterator | a forward iterator to const value_type | |
size_type | an unsigned integral type | usually the same as size_t |
difference_type | a signed integral type | usually the same as ptrdiff_t |
member type | definition | notes |
---|---|---|
key_type | the first template parameter (Key) | |
mapped_type | the second template parameter (T) | |
value_type | pair<const key_type,mapped_type> | |
hasher | the third template parameter (Hash) | defaults to: hash<key_type> |
key_equal | the fourth template parameter (Pred) | defaults to: equal_to<key_type> |
allocator_type | the fifth template parameter (Alloc) | defaults to: allocator<value_type> |
reference | value_type& | |
const_reference | const value_type& | |
pointer | allocator_traits<Alloc>::pointer | for the default allocator: value_type* |
const_pointer | allocator_traits<Alloc>::const_pointer | for the default allocator: const value_type* |
iterator | a forward iterator to value_type | |
const_iterator | a forward iterator to const value_type | |
local_iterator | a forward iterator to value_type | |
const_local_iterator | a forward iterator to const value_type | |
size_type | an unsigned integral type | usually the same as size_t |
difference_type | a signed integral type | usually the same as ptrdiff_t |