FastLED 3.10.9
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 82 of file unordered_map.h.

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