STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > Class Template Reference
Inheritance diagram for unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >:
_Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > >

Public Types

typedef unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > _Myt
 
typedef _Uhash_compare< _Kty, _Hasher, _Keyeq > _Mytraits
 
typedef _Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
 
typedef _Hasher hasher
 
typedef _Kty key_type
 
typedef _Ty mapped_type
 
typedef _Keyeq key_equal
 
typedef _Mytraits key_compare
 
typedef _Mybase::allocator_type allocator_type
 
typedef _Mybase::size_type size_type
 
typedef _Mybase::difference_type difference_type
 
typedef _Mybase::pointer pointer
 
typedef _Mybase::const_pointer const_pointer
 
typedef _Mybase::reference reference
 
typedef _Mybase::const_reference const_reference
 
typedef _Mybase::iterator iterator
 
typedef _Mybase::const_iterator const_iterator
 
typedef _Mybase::value_type value_type
 
typedef _Mybase::iterator local_iterator
 
typedef _Mybase::const_iterator const_local_iterator
 
typedef _Mybase::_Alty _Alty
 
typedef _Mybase::_Pairib _Pairib
 
- Public Types inherited from _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > >
enum  
 
typedef _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > > _Myt
 
typedef _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false >::key_type key_type
 
typedef _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false >::key_compare key_compare
 
typedef _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false >::value_compare value_compare
 
typedef list< typename _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false >::value_type, typename _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false >::allocator_type_Mylist
 
typedef _Mylist::_Alty _Alty
 
typedef _Mylist::value_type value_type
 
typedef _Mylist::allocator_type allocator_type
 
typedef _Mylist::size_type size_type
 
typedef _Mylist::difference_type difference_type
 
typedef _Mylist::pointer pointer
 
typedef _Mylist::const_pointer const_pointer
 
typedef _Mylist::reference reference
 
typedef _Mylist::const_reference const_reference
 
typedef _If< is_same< key_type, value_type >::value, typename _Mylist::const_iterator, typename _Mylist::iterator >::type iterator
 
typedef _Mylist::const_iterator const_iterator
 
typedef _If< is_same< key_type, value_type >::value, typename _Mylist::_Unchecked_const_iterator, typename _Mylist::_Unchecked_iterator >::type _Unchecked_iterator
 
typedef _Mylist::_Unchecked_const_iterator _Unchecked_const_iterator
 
typedef vector< _Unchecked_iterator, typename _Alty::template rebind< _Unchecked_iterator >::other > _Myvec
 
typedef pair< iterator, bool_Pairib
 
typedef pair< iterator, iterator_Pairii
 
typedef pair< const_iterator, const_iterator_Paircc
 
typedef iterator local_iterator
 
typedef const_iterator const_local_iterator
 

Public Member Functions

 unordered_map ()
 
 unordered_map (const allocator_type &_Al)
 
 unordered_map (const _Myt &_Right)
 
 unordered_map (const _Myt &_Right, const allocator_type &_Al)
 
 unordered_map (size_type _Buckets)
 
 unordered_map (size_type _Buckets, const hasher &_Hasharg)
 
 unordered_map (size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg)
 
 unordered_map (size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg, const allocator_type &_Al)
 
template<class _Iter >
 unordered_map (_Iter _First, _Iter _Last)
 
template<class _Iter >
 unordered_map (_Iter _First, _Iter _Last, size_type _Buckets)
 
template<class _Iter >
 unordered_map (_Iter _First, _Iter _Last, size_type _Buckets, const hasher &_Hasharg)
 
template<class _Iter >
 unordered_map (_Iter _First, _Iter _Last, size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg)
 
template<class _Iter >
 unordered_map (_Iter _First, _Iter _Last, size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg, const allocator_type &_Al)
 
_Mytoperator= (const _Myt &_Right)
 
 unordered_map (_Myt &&_Right)
 
 unordered_map (_Myt &&_Right, const allocator_type &_Al)
 
_Mytoperator= (_Myt &&_Right) _NOEXCEPT_OP(_Alty
 
mapped_typeoperator[] (key_type &&_Keyval)
 
void swap (_Myt &_Right) _NOEXCEPT_OP(_Alty
 
template<class _Valty , class = enable_if_t<is_constructible<value_type, _Valty>::value>>
_Pairib insert (_Valty &&_Val)
 
template<class _Valty , class = enable_if_t<is_constructible<value_type, _Valty>::value>>
iterator insert (const_iterator _Where, _Valty &&_Val)
 
template<class _Keyty , class... _Mappedty>
_Pairib _Try_emplace (_Keyty &&_Keyval, _Mappedty &&..._Mapval)
 
template<class... _Mappedty>
_Pairib try_emplace (const key_type &_Keyval, _Mappedty &&..._Mapval)
 
template<class... _Mappedty>
iterator try_emplace (const_iterator, const key_type &_Keyval, _Mappedty &&..._Mapval)
 
template<class... _Mappedty>
_Pairib try_emplace (key_type &&_Keyval, _Mappedty &&..._Mapval)
 
template<class... _Mappedty>
iterator try_emplace (const_iterator, key_type &&_Keyval, _Mappedty &&..._Mapval)
 
template<class _Keyty , class _Mappedty >
_Pairib _Insert_or_assign (_Keyty &&_Keyval, _Mappedty &&_Mapval)
 
template<class _Mappedty >
_Pairib insert_or_assign (const key_type &_Keyval, _Mappedty &&_Mapval)
 
template<class _Mappedty >
iterator insert_or_assign (const_iterator, const key_type &_Keyval, _Mappedty &&_Mapval)
 
template<class _Mappedty >
_Pairib insert_or_assign (key_type &&_Keyval, _Mappedty &&_Mapval)
 
template<class _Mappedty >
iterator insert_or_assign (const_iterator, key_type &&_Keyval, _Mappedty &&_Mapval)
 
 unordered_map (_XSTD initializer_list< value_type > _Ilist)
 
 unordered_map (_XSTD initializer_list< value_type > _Ilist, size_type _Buckets)
 
 unordered_map (_XSTD initializer_list< value_type > _Ilist, size_type _Buckets, const hasher &_Hasharg)
 
 unordered_map (_XSTD initializer_list< value_type > _Ilist, size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg)
 
 unordered_map (_XSTD initializer_list< value_type > _Ilist, size_type _Buckets, const hasher &_Hasharg, const _Keyeq &_Keyeqarg, const allocator_type &_Al)
 
_Mytoperator= (_XSTD initializer_list< value_type > _Ilist)
 
hasher hash_function () const
 
key_equal key_eq () const
 
mapped_typeoperator[] (const key_type &_Keyval)
 
mapped_typeat (const key_type &_Keyval)
 
const mapped_typeat (const key_type &_Keyval) const
 
- Public Member Functions inherited from _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > >
 _Hash (const key_compare &_Parg, const allocator_type &_Al)
 
 _Hash (const _Myt &_Right, const _Any_alloc &_Al)
 
 _Hash (_Myt &&_Right)
 
 _Hash (_Myt &&_Right, const allocator_type &_Al)
 
_Mytoperator= (_Myt &&_Right)
 
_Mytoperator= (const _Myt &_Right)
 
void _Assign_rv (_Myt &&_Right)
 
_Pairib emplace (_Valty &&..._Val)
 
iterator emplace_hint (const_iterator, _Valty &&..._Val)
 
 ~_Hash () _NOEXCEPT
 
iterator begin () _NOEXCEPT
 
const_iterator begin () const _NOEXCEPT
 
local_iterator begin (size_type _Bucket)
 
const_local_iterator begin (size_type _Bucket) const
 
iterator end () _NOEXCEPT
 
const_iterator end () const _NOEXCEPT
 
local_iterator end (size_type _Bucket)
 
const_local_iterator end (size_type _Bucket) const
 
_Unchecked_iterator _Unchecked_begin ()
 
_Unchecked_const_iterator _Unchecked_begin () const
 
_Unchecked_iterator _Unchecked_end ()
 
_Unchecked_const_iterator _Unchecked_end () const
 
iterator _Make_iter (_Unchecked_const_iterator _Where) const
 
iterator _Make_iter (const_iterator _Where) const
 
const_iterator cbegin () const _NOEXCEPT
 
const_local_iterator cbegin (size_type _Bucket) const
 
const_iterator cend () const _NOEXCEPT
 
const_local_iterator cend (size_type _Bucket) const
 
size_type size () const _NOEXCEPT
 
size_type max_size () const _NOEXCEPT
 
bool empty () const _NOEXCEPT
 
allocator_type get_allocator () const _NOEXCEPT
 
key_compare key_comp () const
 
value_compare value_comp () const
 
size_type bucket_count () const _NOEXCEPT
 
size_type max_bucket_count () const _NOEXCEPT
 
size_type bucket (const key_type &_Keyval) const
 
size_type bucket_size (size_type _Bucket) const
 
float load_factor () const _NOEXCEPT
 
float max_load_factor () const _NOEXCEPT
 
void max_load_factor (float _Newmax)
 
void rehash (size_type _Buckets)
 
void reserve (size_type _Maxcount)
 
_Pairib insert (const value_type &_Val)
 
iterator insert (const value_type &_Val)
 
_Pairib insert (value_type &&_Val)
 
iterator insert (value_type &&_Val)
 
iterator insert (const_iterator, const value_type &_Val)
 
iterator insert (const_iterator, value_type &&_Val)
 
void insert (_Iter _First, _Iter _Last)
 
void insert (_XSTD initializer_list< value_type > _Ilist)
 
iterator erase (const_iterator _Plist)
 
iterator erase (const_iterator _First, const_iterator _Last)
 
size_type erase (const key_type &_Keyval)
 
void clear () _NOEXCEPT
 
iterator find (const key_type &_Keyval)
 
const_iterator find (const key_type &_Keyval) const
 
size_type count (const key_type &_Keyval) const
 
iterator lower_bound (const key_type &_Keyval)
 
const_iterator lower_bound (const key_type &_Keyval) const
 
iterator upper_bound (const key_type &_Keyval)
 
const_iterator upper_bound (const key_type &_Keyval) const
 
_Pairii equal_range (const key_type &_Keyval)
 
_Paircc equal_range (const key_type &_Keyval) const
 
void swap (_Myt &_Right)
 

Additional Inherited Members

- Protected Member Functions inherited from _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > >
_Unchecked_iterator _Buynode_if_nil (_Valty &&, _Unchecked_iterator _Plist)
 
_Unchecked_iterator _Buynode_if_nil (_Valty &&_Val, _Nil)
 
void _Destroy_if_not_nil (_Unchecked_iterator _Plist)
 
void _Destroy_if_not_nil (_Nil)
 
_Pairib _Insert (_Valty &&_Val, _Nodety _Pnode)
 
_Unchecked_iterator_Vec_lo (size_type _Bucket)
 
_Unchecked_const_iterator_Vec_lo (size_type _Bucket) const
 
_Unchecked_iterator_Vec_hi (size_type _Bucket)
 
_Unchecked_const_iterator_Vec_hi (size_type _Bucket) const
 
_Unchecked_iterator _Begin (size_type _Bucket)
 
_Unchecked_const_iterator _Begin (size_type _Bucket) const
 
_Unchecked_iterator _End (size_type _Bucket)
 
_Unchecked_const_iterator _End (size_type _Bucket) const
 
void _Erase_bucket (iterator _Plist_arg, size_type _Bucket)
 
void _Insert_bucket (_Unchecked_iterator _Plist, _Unchecked_iterator _Where, size_type _Bucket)
 
void _Copy (const _Myt &_Right)
 
size_type _Hashval (const key_type &_Keyval) const
 
void _Init (size_type _Buckets=_Min_buckets)
 
void _Check_size ()
 
void _Reinsert ()
 
float & _Max_bucket_size () _NOEXCEPT
 
const float & _Max_bucket_size () const _NOEXCEPT
 
- Protected Attributes inherited from _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > >
_Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false_Traitsobj
 
_Mylist _List
 
_Myvec _Vec
 
size_type _Mask
 
size_type _Maxidx
 

Member Typedef Documentation

template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::_Alty unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Alty
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Hash<_Umap_traits<_Kty, _Ty, _Mytraits, _Alloc, false> > unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Mybase
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef unordered_map<_Kty, _Ty, _Hasher, _Keyeq, _Alloc> unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Myt
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Uhash_compare<_Kty, _Hasher, _Keyeq> unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Mytraits
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Pairib
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::allocator_type unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::allocator_type
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::const_iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::const_iterator
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::const_iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::const_local_iterator
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::const_pointer unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::const_pointer
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::const_reference unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::const_reference
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::difference_type unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::difference_type
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Hasher unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::hasher
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::iterator
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mytraits unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::key_compare
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Keyeq unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::key_equal
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Kty unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::key_type
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::local_iterator
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Ty unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::mapped_type
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::pointer unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::pointer
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::reference unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::reference
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::size_type unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::size_type
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
typedef _Mybase::value_type unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::value_type

Constructor & Destructor Documentation

template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( )
inline
118  { // construct empty map from defaults
119  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( const allocator_type _Al)
inlineexplicit
122  : _Mybase(key_compare(), _Al)
123  { // construct empty map from defaults, allocator
124  }
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( const _Myt _Right)
inline
127  : _Mybase(_Right,
128  _Right._List._Getal().select_on_container_copy_construction())
129  { // construct map by copying _Right
130  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( const _Myt _Right,
const allocator_type _Al 
)
inline
133  : _Mybase(_Right, _Al)
134  { // construct map by copying _Right, allocator
135  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( size_type  _Buckets)
inlineexplicit
139  { // construct empty map from defaults, ignore initial size
140  _Mybase::rehash(_Buckets);
141  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( size_type  _Buckets,
const hasher _Hasharg 
)
inline
144  : _Mybase(key_compare(_Hasharg), allocator_type())
145  { // construct empty map from hasher
146  _Mybase::rehash(_Buckets);
147  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg 
)
inline
151  : _Mybase(key_compare(_Hasharg, _Keyeqarg), allocator_type())
152  { // construct empty map from hasher and equality comparator
153  _Mybase::rehash(_Buckets);
154  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg,
const allocator_type _Al 
)
inline
158  : _Mybase(key_compare(_Hasharg, _Keyeqarg), _Al)
159  { // construct empty map from hasher and equality comparator
160  _Mybase::rehash(_Buckets);
161  }
_Mytraits key_compare
Definition: unordered_map:96
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Iter >
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Iter  _First,
_Iter  _Last 
)
inline
166  { // construct map from sequence, defaults
167  insert(_First, _Last);
168  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_FwdIt _Last
Definition: algorithm:1936
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Iter >
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Iter  _First,
_Iter  _Last,
size_type  _Buckets 
)
inline
174  { // construct map from sequence, ignore initial size
175  _Mybase::rehash(_Buckets);
176  insert(_First, _Last);
177  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_FwdIt _Last
Definition: algorithm:1936
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Iter >
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Iter  _First,
_Iter  _Last,
size_type  _Buckets,
const hasher _Hasharg 
)
inline
182  : _Mybase(key_compare(_Hasharg), allocator_type())
183  { // construct map from sequence, comparator
184  _Mybase::rehash(_Buckets);
185  insert(_First, _Last);
186  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_FwdIt _Last
Definition: algorithm:1936
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Iter >
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Iter  _First,
_Iter  _Last,
size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg 
)
inline
192  : _Mybase(key_compare(_Hasharg, _Keyeqarg), allocator_type())
193  { // construct map from sequence, comparator, and allocator
194  _Mybase::rehash(_Buckets);
195  insert(_First, _Last);
196  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_FwdIt _Last
Definition: algorithm:1936
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Iter >
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Iter  _First,
_Iter  _Last,
size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg,
const allocator_type _Al 
)
inline
202  : _Mybase(key_compare(_Hasharg, _Keyeqarg), _Al)
203  { // construct map from sequence, comparator, and allocator
204  _Mybase::rehash(_Buckets);
205  insert(_First, _Last);
206  }
_FwdIt _Last
Definition: algorithm:1936
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Myt &&  _Right)
inline
215  : _Mybase(_STD move(_Right))
216  { // construct map by moving _Right
217  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _Myt &&  _Right,
const allocator_type _Al 
)
inline
220  : _Mybase(_STD move(_Right), _Al)
221  { // construct map by moving _Right, allocator
222  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _XSTD initializer_list< value_type _Ilist)
inline
359  { // construct map from initializer_list, defaults
360  insert(_Ilist);
361  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _XSTD initializer_list< value_type _Ilist,
size_type  _Buckets 
)
inline
366  { // construct map from initializer_list
367  _Mybase::rehash(_Buckets);
368  insert(_Ilist);
369  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _XSTD initializer_list< value_type _Ilist,
size_type  _Buckets,
const hasher _Hasharg 
)
inline
373  : _Mybase(key_compare(_Hasharg), allocator_type())
374  { // construct map from initializer_list, hasher
375  _Mybase::rehash(_Buckets);
376  insert(_Ilist);
377  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _XSTD initializer_list< value_type _Ilist,
size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg 
)
inline
382  : _Mybase(key_compare(_Hasharg, _Keyeqarg), allocator_type())
383  { // construct map from initializer_list, comparator
384  _Mybase::rehash(_Buckets);
385  insert(_Ilist);
386  }
_Mybase::allocator_type allocator_type
Definition: unordered_map:99
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::unordered_map ( _XSTD initializer_list< value_type _Ilist,
size_type  _Buckets,
const hasher _Hasharg,
const _Keyeq &  _Keyeqarg,
const allocator_type _Al 
)
inline
391  : _Mybase(key_compare(_Hasharg, _Keyeqarg), _Al)
392  { // construct map from initializer_list, allocator
393  _Mybase::rehash(_Buckets);
394  insert(_Ilist);
395  }
_Mytraits key_compare
Definition: unordered_map:96
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
_Hash< _Umap_traits< _Kty, _Ty, _Mytraits, _Alloc, false > > _Mybase
Definition: unordered_map:91
void rehash(size_type _Buckets)
Definition: xhash:463

Member Function Documentation

template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Keyty , class _Mappedty >
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Insert_or_assign ( _Keyty &&  _Keyval,
_Mappedty &&  _Mapval 
)
inline
312  { // assign if _Keyval present, else insert
313  iterator _Where = _Mybase::find(_Keyval);
314  if (_Where == _Mybase::end())
315  return (_Mybase::emplace(
316  _STD forward<_Keyty>(_Keyval),
317  _STD forward<_Mappedty>(_Mapval)));
318  else
319  { // _Keyval present, assign new value
320  _Where->second = _STD forward<_Mappedty>(_Mapval);
321  return (_Pairib(_Where, false));
322  }
323  }
Definition: xutility:563
iterator find(const key_type &_Keyval)
Definition: xhash:575
_Mybase::_Pairib _Pairib
Definition: unordered_map:114
_Pairib emplace(_Valty &&..._Val)
Definition: xhash:252
iterator end() _NOEXCEPT
Definition: xhash:287
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Keyty , class... _Mappedty>
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::_Try_emplace ( _Keyty &&  _Keyval,
_Mappedty &&...  _Mapval 
)
inline
266  { // fail if _Keyval present, else emplace
267  iterator _Where = _Mybase::find(_Keyval);
268  if (_Where == _Mybase::end())
269  return (_Mybase::emplace(
271  _STD forward_as_tuple(_STD forward<_Keyty>(_Keyval)),
272  _STD forward_as_tuple(_STD forward<_Mappedty>(_Mapval)...)));
273  else
274  return (_Pairib(_Where, false));
275  }
constexpr tuple< _Types &&...> forward_as_tuple(_Types &&..._Args) _NOEXCEPT
Definition: tuple:985
Definition: xutility:563
constexpr piecewise_construct_t piecewise_construct
Definition: utility:67
iterator find(const key_type &_Keyval)
Definition: xhash:575
_Mybase::_Pairib _Pairib
Definition: unordered_map:114
_Pairib emplace(_Valty &&..._Val)
Definition: xhash:252
iterator end() _NOEXCEPT
Definition: xhash:287
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
mapped_type& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::at ( const key_type _Keyval)
inline
420  { // find element matching _Keyval
421  iterator _Where = _Mybase::lower_bound(_Keyval);
422  if (_Where == _Mybase::end())
423  _Xout_of_range("invalid unordered_map<K, T> key");
424  return (_Where->second);
425  }
Definition: xutility:563
iterator lower_bound(const key_type &_Keyval)
Definition: xhash:591
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xout_of_range(_In_z_ const char *)
iterator end() _NOEXCEPT
Definition: xhash:287
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
const mapped_type& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::at ( const key_type _Keyval) const
inline
428  { // find element matching _Keyval
429  const_iterator _Where = _Mybase::lower_bound(_Keyval);
430  if (_Where == _Mybase::end())
431  _Xout_of_range("invalid unordered_map<K, T> key");
432  return (_Where->second);
433  }
iterator lower_bound(const key_type &_Keyval)
Definition: xhash:591
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xout_of_range(_In_z_ const char *)
iterator end() _NOEXCEPT
Definition: xhash:287
_Mybase::const_iterator const_iterator
Definition: unordered_map:107
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
hasher unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::hash_function ( ) const
inline
405  { // return hasher object
406  return (_Mybase::_Traitsobj._Gethash());
407  }
_Traits _Traitsobj
Definition: xhash:910
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Valty , class = enable_if_t<is_constructible<value_type, _Valty>::value>>
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert ( _Valty &&  _Val)
inline
251  { // insert _Val
252  return (this->emplace(_STD forward<_Valty>(_Val)));
253  }
_In_ int _Val
Definition: vcruntime_string.h:62
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Valty , class = enable_if_t<is_constructible<value_type, _Valty>::value>>
iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert ( const_iterator  _Where,
_Valty &&  _Val 
)
inline
258  { // insert _Val with hint
259  return (this->emplace_hint(_Where, _STD forward<_Valty>(_Val)));
260  }
_In_ int _Val
Definition: vcruntime_string.h:62
iterator emplace_hint(const_iterator, _Valty &&..._Val)
Definition: xhash:259
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Mappedty >
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert_or_assign ( const key_type _Keyval,
_Mappedty &&  _Mapval 
)
inline
328  { // assign if _Keyval present, else insert
329  return (_Insert_or_assign(_Keyval,
330  _STD forward<_Mappedty>(_Mapval)));
331  }
_Pairib _Insert_or_assign(_Keyty &&_Keyval, _Mappedty &&_Mapval)
Definition: unordered_map:310
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Mappedty >
iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert_or_assign ( const_iterator  ,
const key_type _Keyval,
_Mappedty &&  _Mapval 
)
inline
336  { // assign if _Keyval present, else insert, ignore hint
337  return (_Insert_or_assign(_Keyval,
338  _STD forward<_Mappedty>(_Mapval)).first);
339  }
_Pairib _Insert_or_assign(_Keyty &&_Keyval, _Mappedty &&_Mapval)
Definition: unordered_map:310
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Mappedty >
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert_or_assign ( key_type &&  _Keyval,
_Mappedty &&  _Mapval 
)
inline
344  { // assign if _Keyval present, else insert
345  return (_Insert_or_assign(_STD move(_Keyval),
346  _STD forward<_Mappedty>(_Mapval)));
347  }
_Pairib _Insert_or_assign(_Keyty &&_Keyval, _Mappedty &&_Mapval)
Definition: unordered_map:310
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class _Mappedty >
iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::insert_or_assign ( const_iterator  ,
key_type &&  _Keyval,
_Mappedty &&  _Mapval 
)
inline
352  { // assign if _Keyval present, else insert, ignore hint
353  return (_Insert_or_assign(_STD move(_Keyval),
354  _STD forward<_Mappedty>(_Mapval)).first);
355  }
_Pairib _Insert_or_assign(_Keyty &&_Keyval, _Mappedty &&_Mapval)
Definition: unordered_map:310
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
key_equal unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::key_eq ( ) const
inline
410  { // return equality comparator object
411  return (_Mybase::_Traitsobj._Getkeyeq());
412  }
_Traits _Traitsobj
Definition: xhash:910
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
_Myt& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::operator= ( const _Myt _Right)
inline
209  { // assign by copying _Right
211  return (*this);
212  }
_Myt & operator=(_Myt &&_Right)
Definition: xhash:238
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
_Myt& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::operator= ( _Myt &&  _Right)
inline
228  { // assign by moving _Right
230  return (*this);
231  }
_Myt & operator=(_Myt &&_Right)
Definition: xhash:238
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
_Myt& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::operator= ( _XSTD initializer_list< value_type _Ilist)
inline
398  { // assign initializer_list
399  _Mybase::clear();
400  insert(_Ilist);
401  return (*this);
402  }
void clear() _NOEXCEPT
Definition: xhash:569
_Pairib insert(_Valty &&_Val)
Definition: unordered_map:250
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
mapped_type& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::operator[] ( key_type &&  _Keyval)
inline
234  { // find element matching _Keyval or insert with default mapped
235  return (try_emplace(_STD move(_Keyval)).first->second);
236  }
_Ty2 second
Definition: utility:243
_Pairib try_emplace(const key_type &_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:278
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
mapped_type& unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::operator[] ( const key_type _Keyval)
inline
415  { // find element matching _Keyval or insert with default mapped
416  return (try_emplace(_Keyval).first->second);
417  }
_Ty2 second
Definition: utility:243
_Pairib try_emplace(const key_type &_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:278
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
void unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::swap ( _Myt _Right)
inline
242  { // exchange contents with non-movable _Right
244  }
void swap(_Myt &_Right)
Definition: xhash:673
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class... _Mappedty>
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::try_emplace ( const key_type _Keyval,
_Mappedty &&...  _Mapval 
)
inline
280  { // fail if _Keyval present, else emplace
281  return (_Try_emplace(_Keyval, _STD forward<_Mappedty>(_Mapval)...));
282  }
_Pairib _Try_emplace(_Keyty &&_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:264
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class... _Mappedty>
iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::try_emplace ( const_iterator  ,
const key_type _Keyval,
_Mappedty &&...  _Mapval 
)
inline
287  { // fail if _Keyval present, else emplace, ignore hint
288  return (_Try_emplace(_Keyval,
289  _STD forward<_Mappedty>(_Mapval)...).first);
290  }
_Pairib _Try_emplace(_Keyty &&_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:264
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class... _Mappedty>
_Pairib unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::try_emplace ( key_type &&  _Keyval,
_Mappedty &&...  _Mapval 
)
inline
295  { // fail if _Keyval present, else emplace
296  return (_Try_emplace(_STD move(_Keyval),
297  _STD forward<_Mappedty>(_Mapval)...));
298  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
_Pairib _Try_emplace(_Keyty &&_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:264
template<class _Kty, class _Ty, class _Hasher = hash<_Kty>, class _Keyeq = equal_to<_Kty>, class _Alloc = allocator<pair<const _Kty, _Ty> >>
template<class... _Mappedty>
iterator unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc >::try_emplace ( const_iterator  ,
key_type &&  _Keyval,
_Mappedty &&...  _Mapval 
)
inline
303  { // fail if _Keyval present, else emplace, ignore hint
304  return (_Try_emplace(_STD move(_Keyval),
305  _STD forward<_Mappedty>(_Mapval)...).first);
306  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
_Pairib _Try_emplace(_Keyty &&_Keyval, _Mappedty &&..._Mapval)
Definition: unordered_map:264

The documentation for this class was generated from the following file: