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

77 {
79 if (it != end()) {
80 ++it;
81 if (it != end()) {
82 *next_key = *it;
83 return true;
84 } else if (allow_rollover && !empty()) {
85 *next_key = *begin();
86 return true;
87 }
88 }
89 return false;
90 }
iterator find(const Key &key)
Definition set.h:30
iterator end()
Definition set.h:26
iterator begin()
Definition set.h:25
VectorType::const_iterator const_iterator
Definition set.h:20
constexpr bool empty() const
Definition set.h:111

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

+ Here is the call graph for this function: