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

Method count

src/fl/stl/bitset.h:563–569  ·  view source on GitHub ↗

Returns the number of set bits.

Source from the content-addressed store, hash-verified

561
562 /// Returns the number of set bits.
563 fl::u32 count() const FL_NOEXCEPT {
564 if (_storage.template is<fixed_bitset>()) {
565 return _storage.template ptr<fixed_bitset>()->count();
566 } else {
567 return _storage.template ptr<bitset_dynamic>()->count();
568 }
569 }
570
571 /// Queries.
572 bool any() const FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected