Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions | Friends
ska::flat_hash_set< T, H, E, A > Class Template Reference
Inheritance diagram for ska::flat_hash_set< T, H, E, A >:
ska::detailv3::sherwood_v3_table< T, T, H, detailv3::functor_storage< uint64_t, H >, E, detailv3::functor_storage< bool, E >, A, std::allocator_traits< A >::template rebind_alloc< detailv3::sherwood_v3_entry< T > > > ska::detailv3::functor_storage< uint64_t, H > ska::detailv3::functor_storage< bool, E >

Public Types

using key_type = T
 
- Public Types inherited from ska::detailv3::sherwood_v3_table< T, T, H, detailv3::functor_storage< uint64_t, H >, E, detailv3::functor_storage< bool, E >, A, std::allocator_traits< A >::template rebind_alloc< detailv3::sherwood_v3_entry< T > > >
using value_type = T
 
using size_type = uint64_t
 
using difference_type = std::ptrdiff_t
 
using hasher = H
 
using key_equal = E
 
using allocator_type = std::allocator_traits< A >::template rebind_alloc< detailv3::sherwood_v3_entry< T > >
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using iterator = templated_iterator< value_type >
 
using const_iterator = templated_iterator< const value_type >
 

Public Member Functions

template<typename... Args>
std::pair< typename Table::iterator, bool > emplace (Args &&...args)
 
std::pair< typename Table::iterator, bool > emplace (const key_type &arg)
 
std::pair< typename Table::iterator, bool > emplace (key_type &arg)
 
std::pair< typename Table::iterator, bool > emplace (const key_type &&arg)
 
std::pair< typename Table::iterator, bool > emplace (key_type &&arg)
 
- Public Member Functions inherited from ska::detailv3::sherwood_v3_table< T, T, H, detailv3::functor_storage< uint64_t, H >, E, detailv3::functor_storage< bool, E >, A, std::allocator_traits< A >::template rebind_alloc< detailv3::sherwood_v3_entry< T > > >
 sherwood_v3_table (size_type bucket_count, const H &hash=H(), const E &equal=E(), const A &alloc=A())
 
 sherwood_v3_table (size_type bucket_count, const A &alloc)
 
 sherwood_v3_table (size_type bucket_count, const H &hash, const A &alloc)
 
 sherwood_v3_table (const A &alloc)
 
 sherwood_v3_table (It first, It last, size_type bucket_count=0, const H &hash=H(), const E &equal=E(), const A &alloc=A())
 
 sherwood_v3_table (It first, It last, size_type bucket_count, const A &alloc)
 
 sherwood_v3_table (It first, It last, size_type bucket_count, const H &hash, const A &alloc)
 
 sherwood_v3_table (std::initializer_list< T > il, size_type bucket_count=0, const H &hash=H(), const E &equal=E(), const A &alloc=A())
 
 sherwood_v3_table (std::initializer_list< T > il, size_type bucket_count, const A &alloc)
 
 sherwood_v3_table (std::initializer_list< T > il, size_type bucket_count, const H &hash, const A &alloc)
 
 sherwood_v3_table (const sherwood_v3_table &other)
 
 sherwood_v3_table (const sherwood_v3_table &other, const A &alloc)
 
 sherwood_v3_table (sherwood_v3_table &&other) noexcept
 
 sherwood_v3_table (sherwood_v3_table &&other, const A &alloc) noexcept
 
sherwood_v3_tableoperator= (const sherwood_v3_table &other)
 
sherwood_v3_tableoperator= (sherwood_v3_table &&other) noexcept
 
const allocator_type & get_allocator () const
 
const Ekey_eq () const
 
const H & hash_function () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
iterator find (const T &key)
 
const_iterator find (const T &key) const
 
uint64_t count (const T &key) const
 
std::pair< iterator, iterator > equal_range (const T &key)
 
std::pair< const_iterator, const_iterator > equal_range (const T &key) const
 
std::pair< iterator, bool > emplace (Key &&key, Args &&...args)
 
std::pair< iterator, bool > insert (const value_type &value)
 
std::pair< iterator, bool > insert (value_type &&value)
 
iterator insert (const_iterator, const value_type &value)
 
iterator insert (const_iterator, value_type &&value)
 
void insert (It begin, It end)
 
void insert (std::initializer_list< value_type > il)
 
iterator emplace_hint (const_iterator, Args &&...args)
 
void rehash (uint64_t num_buckets)
 
void reserve (uint64_t num_elements)
 
convertible_to_iterator erase (const_iterator to_erase)
 
iterator erase (const_iterator begin_it, const_iterator end_it)
 
uint64_t erase (const T &key)
 
void clear ()
 
void shrink_to_fit ()
 
void swap (sherwood_v3_table &other)
 
uint64_t size () const
 
uint64_t max_size () const
 
uint64_t bucket_count () const
 
size_type max_bucket_count () const
 
uint64_t bucket (const T &key) const
 
float load_factor () const
 
void max_load_factor (float value)
 
float max_load_factor () const
 
bool empty () const
 

Friends

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

Detailed Description

template<typename T, typename H = std::hash<T>, typename E = std::equal_to<T>, typename A = std::allocator<T>>
class ska::flat_hash_set< T, H, E, A >

Definition at line 1440 of file flat_hash_map.h.


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