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

References begin(), empty(), end(), and find().

+ Here is the call graph for this function: