FastLED 3.10.8
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 80 of file unordered_map.h.

81 : _buckets(other._buckets.size()), _size(0), _tombstones(0),
84 // Copy all occupied entries using insert to properly hash them
85 for (fl::size i = 0; i < other._buckets.size(); ++i) {
86 if (other.is_occupied(i)) {
87 insert(other._buckets[i].key, other._buckets[i].value);
88 }
89 }
90 }
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