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 {
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 }
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:215
VectorType::const_iterator const_iterator
Definition map.h:30