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

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