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

914 {
918
919 _buckets.swap(old);
920 _buckets.clear();
921 _buckets.assign(new_cap, Entry{});
922
923 _occupied.reset();
924 _occupied.resize(new_cap);
925 _deleted.reset();
926 _deleted.resize(new_cap);
927
928 _size = _tombstones = 0;
929
930 for (fl::size i = 0; i < old.size(); i++) {
931 if (old_occupied.test(i))
933 }
934 }
fl::bitset< 1024 > _occupied
fl::size size() 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
static fl::size next_power_of_two(fl::size n) FL_NO_EXCEPT