ska::flat_hash_map< K, V, H, E, A > Class Template Reference

Public Types

using key_type = K
 
using mapped_type = V
 

Public Member Functions

 flat_hash_map ()=default
 
V & operator[] (const K &key)
 
V & operator[] (K &&key)
 
V & at (const K &key)
 
const V & at (const K &key) const
 
std::pair< typename Table::iterator, bool > emplace ()
 
template<typename M >
std::pair< typename Table::iterator, bool > insert_or_assign (const key_type &key, M &&m)
 
template<typename M >
std::pair< typename Table::iterator, bool > insert_or_assign (key_type &&key, M &&m)
 
template<typename M >
Table::iterator insert_or_assign (typename Table::const_iterator, const key_type &key, M &&m)
 
template<typename M >
Table::iterator insert_or_assign (typename Table::const_iterator, key_type &&key, M &&m)
 
template<typename Key , typename... Args>
std::pair< iterator, bool > emplace (Key &&key, Args &&... args)
 

Friends

bool operator== (const flat_hash_map &lhs, const flat_hash_map &rhs)
 
bool operator!= (const flat_hash_map &lhs, const flat_hash_map &rhs)
 

Member Typedef Documentation

◆ key_type

template<typename K , typename V , typename H , typename E , typename A >
using ska::flat_hash_map< K, V, H, E, A >::key_type = K

◆ mapped_type

template<typename K , typename V , typename H , typename E , typename A >
using ska::flat_hash_map< K, V, H, E, A >::mapped_type = V

Constructor & Destructor Documentation

◆ flat_hash_map()

template<typename K , typename V , typename H , typename E , typename A >
ska::flat_hash_map< K, V, H, E, A >::flat_hash_map ( )
default

Member Function Documentation

◆ at() [1/2]

template<typename K , typename V , typename H , typename E , typename A >
V& ska::flat_hash_map< K, V, H, E, A >::at ( const K &  key)
inline

◆ at() [2/2]

template<typename K , typename V , typename H , typename E , typename A >
const V& ska::flat_hash_map< K, V, H, E, A >::at ( const K &  key) const
inline

◆ emplace() [1/2]

template<typename K , typename V , typename H , typename E , typename A >
std::pair<typename Table::iterator, bool> ska::flat_hash_map< K, V, H, E, A >::emplace ( )
inline

◆ emplace() [2/2]

template<typename K , typename V , typename H , typename E , typename A >
template<typename Key , typename... Args>
std::pair<iterator, bool> ska::detailv3::sherwood_v3_table< T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc >::emplace ( typename Key  ,
typename...  Args 
)
inline

◆ insert_or_assign() [1/4]

template<typename K , typename V , typename H , typename E , typename A >
template<typename M >
std::pair<typename Table::iterator, bool> ska::flat_hash_map< K, V, H, E, A >::insert_or_assign ( const key_type key,
M &&  m 
)
inline

◆ insert_or_assign() [2/4]

template<typename K , typename V , typename H , typename E , typename A >
template<typename M >
std::pair<typename Table::iterator, bool> ska::flat_hash_map< K, V, H, E, A >::insert_or_assign ( key_type &&  key,
M &&  m 
)
inline

◆ insert_or_assign() [3/4]

template<typename K , typename V , typename H , typename E , typename A >
template<typename M >
Table::iterator ska::flat_hash_map< K, V, H, E, A >::insert_or_assign ( typename Table::const_iterator  ,
const key_type key,
M &&  m 
)
inline

◆ insert_or_assign() [4/4]

template<typename K , typename V , typename H , typename E , typename A >
template<typename M >
Table::iterator ska::flat_hash_map< K, V, H, E, A >::insert_or_assign ( typename Table::const_iterator  ,
key_type &&  key,
M &&  m 
)
inline

◆ operator[]() [1/2]

template<typename K , typename V , typename H , typename E , typename A >
V& ska::flat_hash_map< K, V, H, E, A >::operator[] ( const K &  key)
inline

◆ operator[]() [2/2]

template<typename K , typename V , typename H , typename E , typename A >
V& ska::flat_hash_map< K, V, H, E, A >::operator[] ( K &&  key)
inline

Friends And Related Function Documentation

◆ operator!=

template<typename K , typename V , typename H , typename E , typename A >
bool operator!= ( const flat_hash_map< K, V, H, E, A > &  lhs,
const flat_hash_map< K, V, H, E, A > &  rhs 
)
friend

◆ operator==

template<typename K , typename V , typename H , typename E , typename A >
bool operator== ( const flat_hash_map< K, V, H, E, A > &  lhs,
const flat_hash_map< K, V, H, E, A > &  rhs 
)
friend

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