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

◆ next()

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

Definition at line 85 of file set.h.

85 {
87 if (it != end()) {
88 ++it;
89 if (it != end()) {
90 *next_key = *it;
91 return true;
92 } else if (allow_rollover && !empty()) {
93 *next_key = *begin();
94 return true;
95 }
96 }
97 return false;
98 }
iterator find(const Key &key)
Definition set.h:39
iterator end()
Definition set.h:29
iterator begin()
Definition set.h:26
VectorType::const_iterator const_iterator
Definition set.h:21
constexpr bool empty() const
Definition set.h:120

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

+ Here is the call graph for this function: