FastLED 3.9.15
Loading...
Searching...
No Matches

◆ unordered_map() [5/9]

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
fl::unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT >::unordered_map ( const unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT > & other)
inline

Definition at line 79 of file unordered_map.h.

80 : _buckets(other._buckets.size()), _size(0), _tombstones(0),
83 // Copy all occupied entries using insert to properly hash them
84 for (fl::size i = 0; i < other._buckets.size(); ++i) {
85 if (other.is_occupied(i)) {
86 insert(other._buckets[i].key, other._buckets[i].value);
87 }
88 }
89 }
fl::bitset< 1024 > _occupied
fl::vector_inlined< Entry, INLINED_COUNT > _buckets
bool is_occupied(fl::size idx) const
pair< iterator, bool > insert(const Key &key, const T &value)
fl::bitset< 1024 > _deleted