FastLED
3.10.8
Loading...
Searching...
No Matches
◆
prev()
template<typename
Key
, typename Value, typename Less = fl::less<Key>>
bool
fl::flat_map
<
Key
, Value, Less >::prev
(
const
Key
&
key
,
Key
*
prev_key
,
bool
allow_rollover
=
false
) const
inline
Definition at line
468
of file
flat_map.h
.
468
{
469
auto
it
=
find
(
key
);
470
if
(
it
!=
end
()) {
471
if
(
it
!=
begin
()) {
472
--
it
;
473
*
prev_key
=
it
->first;
474
return
true
;
475
}
else
if
(
allow_rollover
&& !
empty
()) {
476
*
prev_key
=
mData
.back().first;
477
return
true
;
478
}
479
}
480
return
false
;
481
}
fl::flat_map::find
iterator find(const Key &key) FL_NO_EXCEPT
Definition
flat_map.h:156
fl::flat_map::begin
iterator begin() FL_NO_EXCEPT
Definition
flat_map.h:85
fl::flat_map::empty
bool empty() const FL_NO_EXCEPT
Definition
flat_map.h:99
fl::flat_map::end
iterator end() FL_NO_EXCEPT
Definition
flat_map.h:86
fl::flat_map::mData
vector_type mData
Definition
flat_map.h:53
fl::flat_map
Definition
flat_map.h:31
fl
flat_map
Generated on Sun Oct 18 2026 00:57:06 for FastLED by
1.13.2