FastLED 3.9.15
Loading...
Searching...
No Matches
fl::HashSet< Key, Hash, KeyEqual > Class Template Reference

Detailed Description

template<typename Key, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>>
class fl::HashSet< Key, Hash, KeyEqual >

Definition at line 12 of file hash_set.h.

#include <hash_set.h>

+ Inheritance diagram for fl::HashSet< Key, Hash, KeyEqual >:
+ Collaboration diagram for fl::HashSet< Key, Hash, KeyEqual >:

Public Types

using Base = HashMap<Key, bool, Hash, KeyEqual>
 
using const_iterator = typename Base::const_iterator
 
using iterator = typename Base::iterator
 

Public Member Functions

 HashSet (size_t initial_capacity=8, float max_load=0.7f)
 
void erase (const Key &key)
 
iterator find (const Key &key)
 
void insert (const Key &key)
 
- Public Member Functions inherited from fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >
 HashMap (size_t initial_capacity=FASTLED_HASHMAP_INLINED_COUNT, float max_load=0.7f)
 
iterator begin ()
 
const_iterator begin () const
 
size_t capacity () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
bool erase (const Key &key)
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
T * find_value (const Key &key)
 
const T * find_value (const Key &key) const
 
void insert (const Key &key, const T &value)
 
bool needs_rehash () const
 
T & operator[] (const Key &key)
 
bool remove (const Key &key)
 
void setLoadFactor (float f)
 
size_t size () const
 

Additional Inherited Members

- Static Public Member Functions inherited from fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >
static bool NeedsRehash (size_t size, size_t bucket_size, size_t tombstones, uint8_t load_factor)
 

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