A standard container composed of unique keys (containing at most one of each key value) that associates values of another type with the keys.
Class unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>
#include <Geode/c++stl/gnustl/unordered_map.h>
_Key
_Tp
_Hash
_Pred
_Alloc
Examples0
Public static methods0
Public member functions55
template<typename _InputIterator>voidunordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>(,,,,,)
Builds an %unordered_map from a range.
__first
__last
__n
__hf
__eql
__a
geode::stl::unordered_map&operator=()
/// Copy assignment operator.
geode::stl::unordered_map&operator=()
/// Move assignment operator.
geode::stl::unordered_map&operator=()
%Unordered_map list assignment operator.
__l
geode::stl::unordered_map::allocator_typeget_allocator()const
/// Returns the allocator object with which the %unordered_map was /// constructed.
boolempty()const
/// Returns true if the %unordered_map is empty.
geode::stl::unordered_map::size_typesize()const
/// Returns the size of the %unordered_map.
geode::stl::unordered_map::size_typemax_size()const
/// Returns the maximum size of the %unordered_map.
geode::stl::unordered_map::iteratorbegin()
Returns a read/write iterator that points to the first element in the %unordered_map.
geode::stl::unordered_map::const_iteratorbegin()const
Returns a read-only (constant) iterator that points to the first element in the %unordered_map.
geode::stl::unordered_map::const_iteratorcbegin()const
geode::stl::unordered_map::iteratorend()
Returns a read/write iterator that points one past the last element in the %unordered_map.
geode::stl::unordered_map::const_iteratorend()const
Returns a read-only (constant) iterator that points one past the last element in the %unordered_map.
geode::stl::unordered_map::const_iteratorcend()const
template<typename... _Args>std::pair<geode::stl::unordered_map::iterator,bool>emplace(_Args &&...__args)
Attempts to build and insert a std::pair into the %unordered_map.
__args
template<typename... _Args>geode::stl::unordered_map::iteratoremplace_hint(,_Args &&...__args)
Attempts to build and insert a std::pair into the %unordered_map.
__pos
__args
std::pair<geode::stl::unordered_map::iterator,bool>insert()
Attempts to insert a std::pair into the %unordered_map.
__x
template<typename _Pair,typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type>std::pair<geode::stl::unordered_map::iterator,bool>insert(_Pair&&__x)
geode::stl::unordered_map::iteratorinsert(,)
Attempts to insert a std::pair into the %unordered_map.
__hint
__x
template<typename _Pair,typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type>geode::stl::unordered_map::iteratorinsert(,_Pair&&__x)
template<typename _InputIterator>voidinsert(_InputIterator__first,_InputIterator__last)
A template function that attempts to insert a range of elements.
__first
__last
voidinsert()
Attempts to insert a list of elements into the %unordered_map.
__l
geode::stl::unordered_map::iteratorerase()
Erases an element from an %unordered_map.
__position
geode::stl::unordered_map::iteratorerase()
geode::stl::unordered_map::size_typeerase()
Erases elements according to the provided key.
__x
geode::stl::unordered_map::iteratorerase(,)
Erases a [__first,__last) range of elements from an %unordered_map.
__first
__last
voidclear()
Erases all elements in an %unordered_map. Note that this function only erases the elements, and that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user’s responsibility.
voidswap()
Swaps data with another %unordered_map.
__x
geode::stl::unordered_map::hasherhash_function()const
/// Returns the hash functor object with which the %unordered_map was /// constructed.
geode::stl::unordered_map::key_equalkey_eq()const
/// Returns the key comparison object with which the %unordered_map was /// constructed.
geode::stl::unordered_map::iteratorfind()
Tries to locate an element in an %unordered_map.
__x
geode::stl::unordered_map::const_iteratorfind()const
geode::stl::unordered_map::size_typecount()const
Finds the number of elements.
__x
boolcontains()const
std::pair<geode::stl::unordered_map::iterator,geode::stl::unordered_map::iterator>equal_range()
Finds a subsequence matching given key.
__x
std::pair<geode::stl::unordered_map::const_iterator,geode::stl::unordered_map::const_iterator>equal_range()const
geode::stl::unordered_map::mapped_type&operator[]()
Subscript (
__k
geode::stl::unordered_map::mapped_type&operator[]()
geode::stl::unordered_map::mapped_type&at()
Access to %unordered_map data.
__k
geode::stl::unordered_map::mapped_typeconst&at()const
geode::stl::unordered_map::size_typebucket_count()const
/// Returns the number of buckets of the %unordered_map.
geode::stl::unordered_map::size_typemax_bucket_count()const
/// Returns the maximum number of buckets of the %unordered_map.
geode::stl::unordered_map::size_typebucket_size()const
geode::stl::unordered_map::size_typebucket()const
geode::stl::unordered_map::local_iteratorbegin()
Returns a read/write iterator pointing to the first bucket element.
__n
geode::stl::unordered_map::const_local_iteratorbegin()const
Returns a read-only (constant) iterator pointing to the first bucket element.
__n
geode::stl::unordered_map::const_local_iteratorcbegin()const
geode::stl::unordered_map::local_iteratorend()
Returns a read/write iterator pointing to one past the last bucket elements.
__n
geode::stl::unordered_map::const_local_iteratorend()const
Returns a read-only (constant) iterator pointing to one past the last bucket elements.
__n
geode::stl::unordered_map::const_local_iteratorcend()const
floatload_factor()const
/// Returns the average number of elements per bucket.
floatmax_load_factor()const
/// Returns a positive number that the %unordered_map tries to keep the /// load factor less than or equal to.
voidmax_load_factor(float__z)
Change the %unordered_map maximum load factor.
__z
voidrehash()
May rehash the %unordered_map.
__n
voidreserve()
Prepare the %unordered_map for a specified number of elements.
__n