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

◆ rehash_internal()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
void fl::unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT >::rehash_internal ( fl::size new_cap)
inlineprivate

Definition at line 984 of file unordered_map.h.

984 {
988
989 _buckets.swap(old);
990 _buckets.clear();
991 _buckets.assign(new_cap, Entry{});
992
993 _occupied.reset();
994 _occupied.resize(new_cap);
995 _deleted.reset();
996 _deleted.resize(new_cap);
997
998 _size = _tombstones = 0;
999
1000 for (fl::size i = 0; i < old.size(); i++) {
1001 if (old_occupied.test(i))
1003 }
1004 }
fl::bitset< 1024 > _occupied
fl::vector_inlined< Entry, INLINED_COUNT > _buckets
static fl::size next_power_of_two(fl::size n)
pair< iterator, bool > insert(const Key &key, const T &value)
fl::size size() const
fl::bitset< 1024 > _deleted