FastLED 3.10.9
Loading...
Searching...
No Matches

◆ rehash()

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 ( fl::size n)
inline

Definition at line 774 of file unordered_map.h.

774 {
775 // Ensure n is at least as large as the current number of elements
777 if (n < min_buckets) {
778 n = min_buckets;
779 }
780
781 // Only rehash if we need more buckets than we currently have
782 if (n > _buckets.size()) {
784 }
785 // If n <= current bucket count, do nothing (std::unordered_map behavior)
786 }
void rehash_internal(fl::size new_cap) FL_NO_EXCEPT
fl::vector_inlined< Entry, INLINED_COUNT > _buckets