FastLED
3.9.15
Loading...
Searching...
No Matches
◆
next()
template<typename
Key
, typename Value, size_t N>
bool
fl::FixedMap
<
Key
, Value, N >::next
(
const
Key
&
key
,
Key
*
next_key
,
bool
allow_rollover
=
false
) const
inline
Definition at line
194
of file
map.h
.
194
{
195
const_iterator
it
=
find
(
key
);
196
if
(
it
!=
end
()) {
197
++
it
;
198
if
(
it
!=
end
()) {
199
*
next_key
=
it
->first;
200
return
true
;
201
}
else
if
(
allow_rollover
&& !
empty
()) {
202
*
next_key
=
begin
()->first;
203
return
true
;
204
}
205
}
206
return
false
;
207
}
fl::FixedMap::end
iterator end()
Definition
map.h:44
fl::FixedMap::begin
iterator begin()
Definition
map.h:41
fl::FixedMap::find
iterator find(const Key &key)
Definition
map.h:54
fl::FixedMap::empty
constexpr bool empty() const
Definition
map.h:230
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