FastLED
3.10.8
Loading...
Searching...
No Matches
◆
find_unoccupied_index_using_bitset()
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
fl::size
fl::unordered_map
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::find_unoccupied_index_using_bitset
(
const
Key
&
key
,
const fl::bitset< 1024 > &
occupied_set
) const
inline
private
Definition at line
898
of file
unordered_map.h
.
899
{
900
const
fl::size
cap
=
_buckets
.size();
901
const
fl::size
mask
=
cap
- 1;
902
const
fl::size
h
=
_hash
(
key
) &
mask
;
903
904
// Probe via the shared helper -- see find_slot() comment above.
905
for
(
fl::size
i
= 0;
i
<
cap
; ++
i
) {
906
const
fl::size
idx
=
detail::unordered_map_probe_idx
(
h
,
i
,
mask
,
cap
);
907
if
(!
occupied_set
.test(
idx
)) {
908
return
idx
;
909
}
910
}
911
return
npos
();
912
}
fl::unordered_map::_hash
Hash _hash
Definition
unordered_map.h:1051
fl::unordered_map::npos
static fl::size npos() FL_NO_EXCEPT
Definition
unordered_map.h:803
fl::unordered_map::_buckets
fl::vector_inlined< Entry, INLINED_COUNT > _buckets
Definition
unordered_map.h:1045
fl::unordered_map
Definition
unordered_map.h:59
fl::detail::unordered_map_probe_idx
FL_NO_INLINE fl::size unordered_map_probe_idx(fl::size h, fl::size i, fl::size mask, fl::size cap) FL_NO_EXCEPT
Definition
unordered_map_basic.cpp.hpp:14
fl
unordered_map
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2