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
180
of file
map.h
.
181
{
182
const_iterator
it
=
find
(
key
);
183
if
(
it
!=
end
()) {
184
++
it
;
185
if
(
it
!=
end
()) {
186
*
next_key
=
it
->first;
187
return
true
;
188
}
else
if
(
allow_rollover
&& !
empty
()) {
189
*
next_key
=
begin
()->first;
190
return
true
;
191
}
192
}
193
return
false
;
194
}
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:215
fl::FixedMap::const_iterator
VectorType::const_iterator const_iterator
Definition
map.h:30
fl::FixedMap
Definition
map.h:24
fl
FixedMap
Generated on Thu May 29 2025 04:44:58 for FastLED by
1.13.2