FastLED
3.9.15
Loading...
Searching...
No Matches
◆
update()
template<typename
Key
, typename Value, size_t N>
bool
fl::FixedMap
<
Key
, Value, N >::update
(
const
Key
&
key
,
const Value &
value
,
bool
insert_if_missing
=
true
)
inline
Definition at line
165
of file
map.h
.
165
{
166
iterator
it
=
find
(
key
);
167
if
(
it
!=
end
()) {
168
it
->second =
value
;
169
return
true
;
170
}
else
if
(
insert_if_missing
) {
171
return
insert
(
key
,
value
).first;
172
}
173
return
false
;
174
}
fl::FixedMap::insert
Pair< bool, iterator > insert(const Key &key, const Value &value, InsertResult *result=nullptr)
Definition
map.h:141
fl::FixedMap::iterator
VectorType::iterator iterator
Definition
map.h:34
fl::FixedMap::end
iterator end()
Definition
map.h:44
fl::FixedMap::find
iterator find(const Key &key)
Definition
map.h:54
fl::FixedMap
Definition
map.h:29
fl
FixedMap
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2