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 {
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 }
iterator end()
Definition map.h:36
iterator begin()
Definition map.h:35
iterator find(const Key &key)
Definition map.h:40
constexpr bool empty() const
Definition map.h:251
VectorType::const_iterator const_iterator
Definition map.h:30