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
774
fl::size
min_buckets
=
_size
;
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()) {
781
rehash_internal
(
n
);
782
}
783
// If n <= current bucket count, do nothing (std::unordered_map behavior)
784
}
fl::unordered_map::rehash_internal
void rehash_internal(fl::size new_cap) FL_NO_EXCEPT
Definition
unordered_map.h:914
fl::unordered_map::_buckets
fl::vector_inlined< Entry, INLINED_COUNT > _buckets
Definition
unordered_map.h:1045
fl::unordered_map::_size
fl::size _size
Definition
unordered_map.h:1046
fl::unordered_map
Definition
unordered_map.h:59
fl
unordered_map
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2