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 119 of file set.h.

120 {
122 if (it != end()) {
123 ++it;
124 if (it != end()) {
125 *next_key = *it;
126 return true;
127 } else if (allow_rollover && !empty()) {
128 *next_key = *begin();
129 return true;
130 }
131 }
132 return false;
133 }
iterator end()
Definition set.h:42
constexpr bool empty() const
Definition set.h:154
VectorType::const_iterator const_iterator
Definition set.h:36
iterator begin()
Definition set.h:41
iterator find(const Key &key)
Definition set.h:46

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

+ Here is the call graph for this function: