FastLED 3.10.8
Loading...
Searching...
No Matches

◆ next()

template<typename Key, typename Value, fl::size N>
bool fl::unsorted_map_fixed< Key, Value, N >::next ( const Key & key,
Key * next_key,
bool allow_rollover = false ) const
inline

Definition at line 212 of file map.h.

213 {
215 if (it != end()) {
216 ++it;
217 if (it != end()) {
218 *next_key = it->first;
219 return true;
220 } else if (allow_rollover && !empty()) {
221 *next_key = begin()->first;
222 return true;
223 }
224 }
225 return false;
226 }
iterator find(const Key &key) FL_NO_EXCEPT
Definition map.h:40
constexpr bool empty() const FL_NO_EXCEPT
Definition map.h:247
VectorType::const_iterator const_iterator
Definition map.h:30
iterator begin() FL_NO_EXCEPT
Definition map.h:35
iterator end() FL_NO_EXCEPT
Definition map.h:36

References begin(), empty(), end(), find(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: