FastLED
3.10.8
Loading...
Searching...
No Matches
◆
load_factor()
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
float
fl::unordered_map
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::load_factor
(
)
const
inline
Definition at line
748
of file
unordered_map.h
.
748
{
749
if
(
_buckets
.size() == 0) {
750
return
0.0f;
751
}
752
return
static_cast<
float
>
(
_size
) /
static_cast<
float
>
(
_buckets
.size());
753
}
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
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2