FastLED
3.9.15
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
482
of file
flat_map.h
.
482
{
483
auto
it
=
find
(
key
);
484
if
(
it
!=
end
()) {
485
if
(
it
!=
begin
()) {
486
--
it
;
487
*
prev_key
=
it
->first;
488
return
true
;
489
}
else
if
(
allow_rollover
&& !
empty
()) {
490
*
prev_key
=
mData
.back().first;
491
return
true
;
492
}
493
}
494
return
false
;
495
}
fl::flat_map::begin
iterator begin() FL_NOEXCEPT
Definition
flat_map.h:83
fl::flat_map::end
iterator end() FL_NOEXCEPT
Definition
flat_map.h:84
fl::flat_map::find
iterator find(const Key &key) FL_NOEXCEPT
Definition
flat_map.h:136
fl::flat_map::mData
vector_type mData
Definition
flat_map.h:51
fl::flat_map::empty
bool empty() const FL_NOEXCEPT
Definition
flat_map.h:97
fl::flat_map
Definition
flat_map.h:29
fl
flat_map
Generated on Tue Jun 16 2026 00:07:05 for FastLED by
1.13.2