FastLED
3.9.15
Loading...
Searching...
No Matches
◆
unordered_map()
[5/9]
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
fl::unordered_map
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::unordered_map
(
const
unordered_map
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT > &
other
)
inline
Definition at line
79
of file
unordered_map.h
.
80
:
_buckets
(
other
.
_buckets
.size()),
_size
(0),
_tombstones
(0),
81
mLoadFactor
(
other
.
mLoadFactor
),
_occupied
(
other
.
_buckets
.size()),
82
_deleted
(
other
.
_buckets
.size()),
_hash
(
other
.
_hash
),
_equal
(
other
.
_equal
) {
83
// Copy all occupied entries using insert to properly hash them
84
for
(
fl::size
i
= 0;
i
<
other
.
_buckets
.size(); ++
i
) {
85
if
(
other
.
is_occupied
(
i
)) {
86
insert
(
other
.
_buckets
[
i
].key,
other
.
_buckets
[
i
].value);
87
}
88
}
89
}
fl::unordered_map::_hash
Hash _hash
Definition
unordered_map.h:1123
fl::unordered_map::_occupied
fl::bitset< 1024 > _occupied
Definition
unordered_map.h:1121
fl::unordered_map::mLoadFactor
u8 mLoadFactor
Definition
unordered_map.h:1120
fl::unordered_map::_equal
KeyEqual _equal
Definition
unordered_map.h:1124
fl::unordered_map::_buckets
fl::vector_inlined< Entry, INLINED_COUNT > _buckets
Definition
unordered_map.h:1117
fl::unordered_map::_size
fl::size _size
Definition
unordered_map.h:1118
fl::unordered_map::is_occupied
bool is_occupied(fl::size idx) const
Definition
unordered_map.h:809
fl::unordered_map::insert
pair< iterator, bool > insert(const Key &key, const T &value)
Definition
unordered_map.h:324
fl::unordered_map::_tombstones
fl::size _tombstones
Definition
unordered_map.h:1119
fl::unordered_map::_deleted
fl::bitset< 1024 > _deleted
Definition
unordered_map.h:1122
fl::unordered_map
Definition
unordered_map.h:58
fl
unordered_map
Generated on Tue Jun 16 2026 00:07:07 for FastLED by
1.13.2