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 {
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 }
iterator end()
Definition map.h:44
iterator begin()
Definition map.h:41
iterator find(const Key &key)
Definition map.h:54
constexpr bool empty() const
Definition map.h:230
VectorType::const_iterator const_iterator
Definition map.h:35