GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::HashMap< Key, T, Hash, KeyEqual, Allocator > Class Template Reference

#include <GREM/core/data/HashMap.hpp>

Public Types

using key_type = Key
using mapped_type = T
using size_type = std::size_t
using hasher = Hash
using key_equal = KeyEqual
using allocator_type = Allocator
using iterator = Iterator<false>
using const_iterator = Iterator<true>
using value_type = typename iterator::value_type
using reference = typename iterator::reference
using const_reference = typename const_iterator::reference
using pointer = typename iterator::pointer
using const_pointer = typename const_iterator::pointer
using difference_type = typename iterator::difference_type

Public Member Functions

constexpr HashMap () noexcept=default
constexpr HashMap (size_type bucket_count, const Hash &hash=Hash(), const KeyEqual &equal=KeyEqual(), const Allocator &allocator=Allocator())
constexpr HashMap (size_type bucket_count, const Allocator &allocator)
constexpr HashMap (size_type bucket_count, const Hash &hash, const Allocator &allocator)
constexpr HashMap (const Allocator &allocator)
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr HashMap (InputIterator first, Sentinel last, size_type bucket_count=0, const Hash &hash=Hash(), const KeyEqual &equal=KeyEqual(), const Allocator &allocator=Allocator())
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr HashMap (InputIterator first, Sentinel last, size_type bucket_count, const Allocator &allocator)
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr HashMap (InputIterator first, Sentinel last, size_type bucket_count, const Hash &hash, const Allocator &allocator)
constexpr HashMap (std::initializer_list< value_type > ilist, size_type bucket_count=0, const Hash &hash=Hash(), const KeyEqual &equal=KeyEqual(), const Allocator &allocator=Allocator())
constexpr HashMap (std::initializer_list< value_type > ilist, size_type bucket_count, const Allocator &allocator=Allocator())
constexpr HashMap (std::initializer_list< value_type > ilist, size_type bucket_count, const Hash &hash=Hash(), const Allocator &allocator=Allocator())
constexpr HashMap (const HashMap &other)
constexpr HashMap (const HashMap &other, const Allocator &allocator)
constexpr HashMap (HashMap &&other) noexcept
constexpr HashMap (HashMap &&other, const Allocator &allocator) noexcept
constexpr ~HashMap ()
constexpr HashMap & operator= (const HashMap &other)
constexpr HashMap & operator= (HashMap &&other) noexcept
constexpr HashMap & operator= (std::initializer_list< value_type > ilist)
constexpr void swap (HashMap &other) noexcept(std::allocator_traits< Allocator >::is_always_equal::value)
constexpr void clear () noexcept
constexpr void reserve (size_type capacity)
constexpr Pair< iterator, bool > insert (const value_type &value)
constexpr Pair< iterator, bool > insert (value_type &&value)
template<typename P>
requires (std::is_constructible_v<value_type, P &&>)
constexpr Pair< iterator, bool > insert (P &&value)
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr void insert (InputIterator first, Sentinel last)
constexpr void insert (std::initializer_list< value_type > ilist)
template<typename R>
constexpr void insert_range (R &&r)
template<typename... Args>
constexpr Pair< iterator, bool > emplace (Args &&... args)
template<typename... Args>
constexpr Pair< iterator, bool > try_emplace (const Key &k, Args &&... args)
template<typename... Args>
constexpr Pair< iterator, bool > try_emplace (Key &&k, Args &&... args)
template<typename K, typename... Args>
requires (!std::is_convertible_v<K &&, const_iterator> && !std::is_convertible_v<K &&, iterator> && IS_TRANSPARENT)
constexpr Pair< iterator, bool > try_emplace (K &&k, Args &&... args)
template<typename M>
constexpr Pair< iterator, bool > insert_or_assign (const Key &k, M &&obj)
template<typename M>
constexpr Pair< iterator, bool > insert_or_assign (Key &&k, M &&obj)
template<typename K, typename M>
requires (IS_TRANSPARENT)
constexpr Pair< iterator, bool > insert_or_assign (K &&k, M &&obj)
constexpr iterator erase (const_iterator pos)
constexpr iterator erase (const_iterator first, const_iterator last)
constexpr size_type erase (const Key &key)
template<typename K>
requires (IS_TRANSPARENT && !std::is_convertible_v<K, iterator> && !std::is_convertible_v<K, const_iterator>)
constexpr size_type erase (K &&x)
constexpr hasher hash_function () const
constexpr key_equal key_eq () const
constexpr allocator_type get_allocator () const noexcept
constexpr bool empty () const noexcept
constexpr size_type size () const noexcept
constexpr size_type max_size () const noexcept
constexpr T & at (const Key &key)
constexpr const T & at (const Key &key) const
template<typename K>
requires (IS_TRANSPARENT)
constexpr T & at (const K &key)
template<typename K>
requires (IS_TRANSPARENT)
constexpr const T & at (const K &key) const
constexpr T & operator[] (const Key &key)
constexpr T & operator[] (Key &&key)
template<typename K>
requires (IS_TRANSPARENT)
constexpr T & operator[] (K &&x)
constexpr bool contains (const Key &key) const
template<typename K>
requires (IS_TRANSPARENT)
constexpr bool contains (const K &x) const
constexpr size_type count (const Key &key) const
template<typename K>
requires (IS_TRANSPARENT)
constexpr size_type count (const K &x) const
constexpr iterator find (const Key &key)
constexpr const_iterator find (const Key &key) const
template<typename K>
requires (IS_TRANSPARENT)
constexpr iterator find (const K &x)
template<typename K>
requires (IS_TRANSPARENT)
constexpr const_iterator find (const K &x) const
constexpr iterator getIteratorAtIndex (size_type index)
constexpr const_iterator getIteratorAtIndex (size_type index) const
constexpr reference getAtIndex (size_type index)
constexpr const_reference getAtIndex (size_type index) const
constexpr Pair< iterator, iterator > equal_range (const Key &key)
constexpr Pair< const_iterator, const_iterator > equal_range (const Key &key) const
template<typename K>
requires (IS_TRANSPARENT)
constexpr Pair< iterator, iterator > equal_range (const K &x)
template<typename K>
requires (IS_TRANSPARENT)
constexpr Pair< const_iterator, const_iterator > equal_range (const K &x) const
constexpr iterator begin () noexcept
constexpr const_iterator begin () const noexcept
constexpr const_iterator cbegin () const noexcept
constexpr iterator end () noexcept
constexpr const_iterator end () const noexcept
constexpr const_iterator cend () const noexcept
constexpr bool operator== (const HashMap &other) const
constexpr bool operator< (const HashMap &other) const
constexpr bool operator<= (const HashMap &other) const
constexpr bool operator> (const HashMap &other) const
constexpr bool operator>= (const HashMap &other) const

Friends

constexpr void swap (HashMap &a, HashMap &b) noexcept(noexcept(a.swap(b)))
template<typename Predicate>
constexpr size_type erase_if (HashMap &c, Predicate predicate)

Member Typedef Documentation

◆ key_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::key_type = Key

◆ mapped_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::mapped_type = T

◆ size_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::size_type = std::size_t

◆ hasher

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::hasher = Hash

◆ key_equal

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::key_equal = KeyEqual

◆ allocator_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::allocator_type = Allocator

◆ iterator

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::iterator = Iterator<false>

◆ const_iterator

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::const_iterator = Iterator<true>

◆ value_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::value_type = typename iterator::value_type

◆ reference

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::reference = typename iterator::reference

◆ const_reference

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::const_reference = typename const_iterator::reference

◆ pointer

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::pointer = typename iterator::pointer

◆ const_pointer

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::const_pointer = typename const_iterator::pointer

◆ difference_type

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
using grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::difference_type = typename iterator::difference_type

Constructor & Destructor Documentation

◆ HashMap() [1/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( )
constexprdefaultnoexcept

◆ HashMap() [2/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( size_type bucket_count,
const Hash & hash = Hash(),
const KeyEqual & equal = KeyEqual(),
const Allocator & allocator = Allocator() )
inlineexplicitconstexpr

◆ HashMap() [3/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( size_type bucket_count,
const Allocator & allocator )
inlineconstexpr

◆ HashMap() [4/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( size_type bucket_count,
const Hash & hash,
const Allocator & allocator )
inlineconstexpr

◆ HashMap() [5/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( const Allocator & allocator)
inlineexplicitconstexpr

◆ HashMap() [6/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( InputIterator first,
Sentinel last,
size_type bucket_count = 0,
const Hash & hash = Hash(),
const KeyEqual & equal = KeyEqual(),
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ HashMap() [7/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( InputIterator first,
Sentinel last,
size_type bucket_count,
const Allocator & allocator )
inlineconstexpr

◆ HashMap() [8/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( InputIterator first,
Sentinel last,
size_type bucket_count,
const Hash & hash,
const Allocator & allocator )
inlineconstexpr

◆ HashMap() [9/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( std::initializer_list< value_type > ilist,
size_type bucket_count = 0,
const Hash & hash = Hash(),
const KeyEqual & equal = KeyEqual(),
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ HashMap() [10/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( std::initializer_list< value_type > ilist,
size_type bucket_count,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ HashMap() [11/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( std::initializer_list< value_type > ilist,
size_type bucket_count,
const Hash & hash = Hash(),
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ HashMap() [12/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other)
inlineconstexpr

◆ HashMap() [13/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other,
const Allocator & allocator )
inlineconstexpr

◆ HashMap() [14/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( HashMap< Key, T, Hash, KeyEqual, Allocator > && other)
inlineconstexprnoexcept

◆ HashMap() [15/15]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::HashMap ( HashMap< Key, T, Hash, KeyEqual, Allocator > && other,
const Allocator & allocator )
inlineconstexprnoexcept

◆ ~HashMap()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::~HashMap ( )
inlineconstexpr

Member Function Documentation

◆ operator=() [1/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
HashMap & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator= ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other)
inlineconstexpr

◆ operator=() [2/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
HashMap & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator= ( HashMap< Key, T, Hash, KeyEqual, Allocator > && other)
inlineconstexprnoexcept

◆ operator=() [3/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
HashMap & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator= ( std::initializer_list< value_type > ilist)
inlineconstexpr

◆ swap()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::swap ( HashMap< Key, T, Hash, KeyEqual, Allocator > & other)
inlineconstexprnoexcept

◆ clear()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::clear ( )
inlineconstexprnoexcept

◆ reserve()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::reserve ( size_type capacity)
inlineconstexpr

◆ insert() [1/5]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert ( const value_type & value)
inlineconstexpr

◆ insert() [2/5]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert ( value_type && value)
inlineconstexpr

◆ insert() [3/5]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename P>
requires (std::is_constructible_v<value_type, P &&>)
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert ( P && value)
inlineconstexpr

◆ insert() [4/5]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert ( InputIterator first,
Sentinel last )
inlineconstexpr

◆ insert() [5/5]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert ( std::initializer_list< value_type > ilist)
inlineconstexpr

◆ insert_range()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename R>
void grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert_range ( R && r)
inlineconstexpr

◆ emplace()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename... Args>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::emplace ( Args &&... args)
inlineconstexpr

◆ try_emplace() [1/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename... Args>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::try_emplace ( const Key & k,
Args &&... args )
inlineconstexpr

◆ try_emplace() [2/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename... Args>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::try_emplace ( Key && k,
Args &&... args )
inlineconstexpr

◆ try_emplace() [3/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K, typename... Args>
requires (!std::is_convertible_v<K &&, const_iterator> && !std::is_convertible_v<K &&, iterator> && IS_TRANSPARENT)
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::try_emplace ( K && k,
Args &&... args )
inlineconstexpr

◆ insert_or_assign() [1/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename M>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert_or_assign ( const Key & k,
M && obj )
inlineconstexpr

◆ insert_or_assign() [2/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename M>
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert_or_assign ( Key && k,
M && obj )
inlineconstexpr

◆ insert_or_assign() [3/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K, typename M>
requires (IS_TRANSPARENT)
Pair< iterator, bool > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::insert_or_assign ( K && k,
M && obj )
inlineconstexpr

◆ erase() [1/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::erase ( const_iterator pos)
inlineconstexpr

◆ erase() [2/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::erase ( const_iterator first,
const_iterator last )
inlineconstexpr

◆ erase() [3/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::erase ( const Key & key)
inlineconstexpr

◆ erase() [4/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT && !std::is_convertible_v<K, iterator> && !std::is_convertible_v<K, const_iterator>)
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::erase ( K && x)
inlineconstexpr

◆ hash_function()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
hasher grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::hash_function ( ) const
inlinenodiscardconstexpr

◆ key_eq()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
key_equal grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::key_eq ( ) const
inlinenodiscardconstexpr

◆ get_allocator()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
allocator_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::get_allocator ( ) const
inlinenodiscardconstexprnoexcept

◆ empty()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::empty ( ) const
inlinenodiscardconstexprnoexcept

◆ size()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::size ( ) const
inlinenodiscardconstexprnoexcept

◆ max_size()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::max_size ( ) const
inlinenodiscardconstexprnoexcept

◆ at() [1/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::at ( const Key & key)
inlinenodiscardconstexpr

◆ at() [2/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::at ( const Key & key) const
inlinenodiscardconstexpr

◆ at() [3/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::at ( const K & key)
inlinenodiscardconstexpr

◆ at() [4/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
const T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::at ( const K & key) const
inlinenodiscardconstexpr

◆ operator[]() [1/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator[] ( const Key & key)
inlinenodiscardconstexpr

◆ operator[]() [2/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator[] ( Key && key)
inlinenodiscardconstexpr

◆ operator[]() [3/3]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
T & grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator[] ( K && x)
inlinenodiscardconstexpr

◆ contains() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::contains ( const Key & key) const
inlinenodiscardconstexpr

◆ contains() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::contains ( const K & x) const
inlinenodiscardconstexpr

◆ count() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::count ( const Key & key) const
inlinenodiscardconstexpr

◆ count() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
size_type grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::count ( const K & x) const
inlinenodiscardconstexpr

◆ find() [1/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::find ( const Key & key)
inlinenodiscardconstexpr

◆ find() [2/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::find ( const Key & key) const
inlinenodiscardconstexpr

◆ find() [3/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::find ( const K & x)
inlinenodiscardconstexpr

◆ find() [4/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::find ( const K & x) const
inlinenodiscardconstexpr

◆ getIteratorAtIndex() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::getIteratorAtIndex ( size_type index)
inlinenodiscardconstexpr

◆ getIteratorAtIndex() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::getIteratorAtIndex ( size_type index) const
inlinenodiscardconstexpr

◆ getAtIndex() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
reference grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::getAtIndex ( size_type index)
inlinenodiscardconstexpr

◆ getAtIndex() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_reference grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::getAtIndex ( size_type index) const
inlinenodiscardconstexpr

◆ equal_range() [1/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
Pair< iterator, iterator > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::equal_range ( const Key & key)
inlinenodiscardconstexpr

◆ equal_range() [2/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
Pair< const_iterator, const_iterator > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::equal_range ( const Key & key) const
inlinenodiscardconstexpr

◆ equal_range() [3/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
Pair< iterator, iterator > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::equal_range ( const K & x)
inlinenodiscardconstexpr

◆ equal_range() [4/4]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename K>
requires (IS_TRANSPARENT)
Pair< const_iterator, const_iterator > grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::equal_range ( const K & x) const
inlinenodiscardconstexpr

◆ begin() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::begin ( )
inlinenodiscardconstexprnoexcept

◆ begin() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::begin ( ) const
inlinenodiscardconstexprnoexcept

◆ cbegin()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::cbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ end() [1/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::end ( )
inlinenodiscardconstexprnoexcept

◆ end() [2/2]

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::end ( ) const
inlinenodiscardconstexprnoexcept

◆ cend()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
const_iterator grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::cend ( ) const
inlinenodiscardconstexprnoexcept

◆ operator==()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator== ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator<()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator< ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator<=()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator<= ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator>()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator> ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator>=()

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
bool grem::HashMap< Key, T, Hash, KeyEqual, Allocator >::operator>= ( const HashMap< Key, T, Hash, KeyEqual, Allocator > & other) const
inlinenodiscardconstexpr

◆ swap

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
void swap ( HashMap< Key, T, Hash, KeyEqual, Allocator > & a,
HashMap< Key, T, Hash, KeyEqual, Allocator > & b )
friend

◆ erase_if

template<typename Key, typename T, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Pair<const Key, T>>>
template<typename Predicate>
size_type erase_if ( HashMap< Key, T, Hash, KeyEqual, Allocator > & c,
Predicate predicate )
friend

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