FastLED
3.9.15
Loading...
Searching...
No Matches
◆
next()
template<typename
Key
, typename Value, fl::size N>
bool
fl::FixedMap
<
Key
, Value, N >::next
(
const
Key
&
key
,
Key
*
next_key
,
bool
allow_rollover
=
false
) const
inline
Definition at line
216
of file
map.h
.
217
{
218
const_iterator
it
=
find
(
key
);
219
if
(
it
!=
end
()) {
220
++
it
;
221
if
(
it
!=
end
()) {
222
*
next_key
=
it
->first;
223
return
true
;
224
}
else
if
(
allow_rollover
&& !
empty
()) {
225
*
next_key
=
begin
()->first;
226
return
true
;
227
}
228
}
229
return
false
;
230
}
fl::FixedMap::end
iterator end()
Definition
map.h:36
fl::FixedMap::begin
iterator begin()
Definition
map.h:35
fl::FixedMap::find
iterator find(const Key &key)
Definition
map.h:40
fl::FixedMap::empty
constexpr bool empty() const
Definition
map.h:251
fl::FixedMap::const_iterator
VectorType::const_iterator const_iterator
Definition
map.h:30
fl::FixedMap
Definition
map.h:24
fl
FixedMap
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2