FastLED
3.9.15
Loading...
Searching...
No Matches
◆
get()
[1/2]
template<typename
Key
, typename Value, size_t N>
Value
fl::FixedMap
<
Key
, Value, N >::get
(
const
Key
&
key
,
bool *
has
=
nullptr
) const
inline
Definition at line
127
of file
map.h
.
127
{
128
const_iterator
it
=
find
(
key
);
129
if
(
it
!=
end
()) {
130
if
(
has
) {
131
*
has
=
true
;
132
}
133
return
it
->second;
134
}
135
if
(
has
) {
136
*
has
=
false
;
137
}
138
return
Value
();
139
}
fl::FixedMap::end
iterator end()
Definition
map.h:44
fl::FixedMap::has
bool has(const Key &it) const
Definition
map.h:244
fl::FixedMap::find
iterator find(const Key &key)
Definition
map.h:54
fl::FixedMap::const_iterator
VectorType::const_iterator const_iterator
Definition
map.h:35
fl::FixedMap
Definition
map.h:29
fl
FixedMap
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2