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

Method find_first

src/fl/stl/bitset.h:618–624  ·  view source on GitHub ↗

Finds the first bit that matches the test value. Returns the index of the first matching bit, or -1 if none found. @param test_value The value to search for (true or false) @param offset Starting position to search from (default: 0)

Source from the content-addressed store, hash-verified

616 /// @param test_value The value to search for (true or false)
617 /// @param offset Starting position to search from (default: 0)
618 fl::i32 find_first(bool test_value, fl::u32 offset = 0) const FL_NOEXCEPT {
619 if (_storage.template is<fixed_bitset>()) {
620 return _storage.template ptr<fixed_bitset>()->find_first(test_value, offset);
621 } else {
622 return _storage.template ptr<bitset_dynamic>()->find_first(test_value, offset);
623 }
624 }
625
626 /// Bitwise operators
627 friend bitset_inlined operator~(const bitset_inlined &bs) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 1

find_firstMethod · 0.45

Tested by

no test coverage detected