FastLED 3.9.15
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 773 of file unordered_map.h.

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