MCPcopy Create free account
hub / github.com/FastLED/FastLED / next

Method next

src/fl/stl/map.h:212–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 }
211
212 bool next(const Key &key, Key *next_key,
213 bool allow_rollover = false) const {
214 const_iterator it = find(key);
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 }
227
228 bool prev(const Key &key, Key *prev_key,
229 bool allow_rollover = false) const {

Callers

nothing calls this directly

Calls 4

findFunction · 0.70
endFunction · 0.70
emptyFunction · 0.70
beginFunction · 0.70

Tested by

no test coverage detected