NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nstd::set< T, Hash, Eq, Alloc > 模板类 参考

#include <ne_stl_set.h>

类 nstd::set< T, Hash, Eq, Alloc > 继承关系图:
phmap::flat_hash_set< T, Hash, Eq, Alloc > phmap::priv::raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, Hash, Eq, Alloc >

Public 成员函数

 set ()
 
- Public 成员函数 继承自 phmap::flat_hash_set< T, Hash, Eq, Alloc >
 flat_hash_set ()
 
- Public 成员函数 继承自 phmap::priv::raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, Hash, Eq, Alloc >
 raw_hash_set () noexcept(std::is_nothrow_default_constructible< hasher >::value &&std::is_nothrow_default_constructible< key_equal >::value &&std::is_nothrow_default_constructible< allocator_type >::value)
 
 raw_hash_set (size_t bucket_cnt, const hasher &hashfn=hasher(), const key_equal &eq=key_equal(), const allocator_type &alloc=allocator_type())
 
 raw_hash_set (size_t bucket_cnt, const hasher &hashfn, const allocator_type &alloc)
 
 raw_hash_set (size_t bucket_cnt, const allocator_type &alloc)
 
 raw_hash_set (const allocator_type &alloc)
 
 raw_hash_set (InputIter first, InputIter last, size_t bucket_cnt=0, const hasher &hashfn=hasher(), const key_equal &eq=key_equal(), const allocator_type &alloc=allocator_type())
 
 raw_hash_set (InputIter first, InputIter last, size_t bucket_cnt, const hasher &hashfn, const allocator_type &alloc)
 
 raw_hash_set (InputIter first, InputIter last, size_t bucket_cnt, const allocator_type &alloc)
 
 raw_hash_set (InputIter first, InputIter last, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< T > init, size_t bucket_cnt=0, const hasher &hashfn=hasher(), const key_equal &eq=key_equal(), const allocator_type &alloc=allocator_type())
 
 raw_hash_set (std::initializer_list< init_type > init, size_t bucket_cnt=0, const hasher &hashfn=hasher(), const key_equal &eq=key_equal(), const allocator_type &alloc=allocator_type())
 
 raw_hash_set (std::initializer_list< T > init, size_t bucket_cnt, const hasher &hashfn, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< init_type > init, size_t bucket_cnt, const hasher &hashfn, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< T > init, size_t bucket_cnt, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< init_type > init, size_t bucket_cnt, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< T > init, const allocator_type &alloc)
 
 raw_hash_set (std::initializer_list< init_type > init, const allocator_type &alloc)
 
 raw_hash_set (const raw_hash_set &that)
 
 raw_hash_set (const raw_hash_set &that, const allocator_type &a)
 
 raw_hash_set (raw_hash_set &&that) noexcept(std::is_nothrow_copy_constructible< hasher >::value &&std::is_nothrow_copy_constructible< key_equal >::value &&std::is_nothrow_copy_constructible< allocator_type >::value)
 
 raw_hash_set (raw_hash_set &&that, const allocator_type &a)
 
raw_hash_setoperator= (const raw_hash_set &that)
 
raw_hash_setoperator= (raw_hash_set &&that) noexcept(phmap::allocator_traits< allocator_type >::is_always_equal::value &&std::is_nothrow_move_assignable< hasher >::value &&std::is_nothrow_move_assignable< key_equal >::value)
 
 ~raw_hash_set ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
size_t max_size () const
 
PHMAP_ATTRIBUTE_REINITIALIZES void clear ()
 
std::pair< iterator, boolinsert (T &&value)
 
std::pair< iterator, boolinsert (const T &value)
 
std::pair< iterator, boolinsert (init_type &&value)
 
iterator insert (const_iterator, T &&value)
 
iterator insert (const_iterator, const T &value)
 
iterator insert (const_iterator, init_type &&value)
 
void insert (InputIt first, InputIt last)
 
void insert (InputIt first, InputIt last)
 
void insert (std::initializer_list< T > ilist)
 
void insert (std::initializer_list< init_type > ilist)
 
insert_return_type insert (node_type &&node)
 
insert_return_type insert (node_type &&node, size_t hashval)
 
iterator insert (const_iterator, node_type &&node)
 
std::pair< iterator, boolemplace (Args &&... args)
 
std::pair< iterator, boolemplace (Args &&... args)
 
std::pair< iterator, boolemplace_with_hash (size_t hashval, Args &&... args)
 
std::pair< iterator, boolemplace_with_hash (size_t hashval, Args &&... args)
 
iterator emplace_hint (const_iterator, Args &&... args)
 
iterator emplace_hint_with_hash (size_t hashval, const_iterator, Args &&... args)
 
iterator lazy_emplace (const key_arg< K > &key, F &&f)
 
iterator lazy_emplace_with_hash (const key_arg< K > &key, size_t hashval, F &&f)
 
void lazy_emplace_at (size_t &idx, F &&f)
 
void emplace_single_with_hash (const key_arg< K > &key, size_t hashval, F &&f)
 
size_type erase (const key_arg< K > &key)
 
iterator erase (const_iterator cit)
 
iterator erase (iterator it)
 
iterator erase (const_iterator first, const_iterator last)
 
void _erase (iterator it)
 
void _erase (const_iterator cit)
 
void merge (raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, H, E, Alloc > &src)
 
void merge (raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, H, E, Alloc > &&src)
 
node_type extract (const_iterator position)
 
node_type extract (const key_arg< K > &key)
 
void swap (raw_hash_set &that) noexcept(IsNoThrowSwappable< hasher >() &&IsNoThrowSwappable< key_equal >() &&(!AllocTraits::propagate_on_container_swap::value||IsNoThrowSwappable< allocator_type >()))
 
bool phmap_dump (OutputArchive &) const
 
bool phmap_load (InputArchive &)
 
void rehash (size_t n)
 
void reserve (size_t n)
 
size_t count (const key_arg< K > &key) const
 
void prefetch_hash (size_t hashval) const
 
void prefetch (const key_arg< K > &key) const
 
iterator find (const key_arg< K > &key, size_t hashval)
 
iterator find (const key_arg< K > &key)
 
const_iterator find (const key_arg< K > &key, size_t hashval) const
 
const_iterator find (const key_arg< K > &key) const
 
pointer find_ptr (const key_arg< K > &key, size_t hashval)
 
bool contains (const key_arg< K > &key) const
 
bool contains (const key_arg< K > &key, size_t hashval) const
 
std::pair< iterator, iterator > equal_range (const key_arg< K > &key)
 
std::pair< const_iterator, const_iterator > equal_range (const key_arg< K > &key) const
 
size_t bucket_count () const
 
float load_factor () const
 
float max_load_factor () const
 
void max_load_factor (float)
 
hasher hash_function () const
 
key_equal key_eq () const
 
allocator_type get_allocator () const
 
size_t hash (const K &key) const
 

额外继承的成员函数

- Public 类型 继承自 phmap::priv::raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, Hash, Eq, Alloc >
using init_type
 
using key_type
 
using slot_type
 
using allocator_type
 
using size_type
 
using difference_type
 
using hasher
 
using key_equal
 
using policy_type
 
using value_type
 
using reference
 
using const_reference
 
using pointer
 
using const_pointer
 
using key_arg
 
using node_type
 
using insert_return_type
 
using IsRandomAccess
 
- Protected 成员函数 继承自 phmap::priv::raw_hash_set< phmap::priv::FlatHashSetPolicy< T >, Hash, Eq, Alloc >
std::pair< size_t, boolfind_or_prepare_insert (const K &key, size_t hashval)
 
std::pair< size_t, boolfind_or_prepare_insert (const K &key)
 
size_t prepare_insert (size_t hashval) PHMAP_ATTRIBUTE_NOINLINE
 
void emplace_at (size_t i, Args &&... args)
 
iterator iterator_at (size_t i)
 
const_iterator iterator_at (size_t i) const
 

构造及析构函数说明

◆ set()

template<class T , class Hash = hash_default_hash<T>, class Eq = hash_default_eq<T>, class Alloc = Allocator<T>>
nstd::set< T, Hash, Eq, Alloc >::set ( )
inline

该类的文档由以下文件生成: