FastLED 3.9.15
Loading...
Searching...
No Matches

◆ next()

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

Definition at line 117 of file set.h.

118 {
120 if (it != end()) {
121 ++it;
122 if (it != end()) {
123 *next_key = *it;
124 return true;
125 } else if (allow_rollover && !empty()) {
126 *next_key = *begin();
127 return true;
128 }
129 }
130 return false;
131 }
iterator end()
Definition set.h:40
constexpr bool empty() const
Definition set.h:152
VectorType::const_iterator const_iterator
Definition set.h:34
iterator begin()
Definition set.h:39
iterator find(const Key &key)
Definition set.h:44

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

+ Here is the call graph for this function: