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

◆ count()

template<uint32_t N = 256>
uint32_t fl::BitsetInlined< N >::count ( ) const
inlinenoexcept

Returns the number of set bits.

Definition at line 396 of file bitset.h.

396 {
397 if (_storage.template is<fixed_bitset>()) {
398 return _storage.template ptr<fixed_bitset>()->count();
399 } else {
400 return _storage.template ptr<bitset_dynamic>()->count();
401 }
402 }
uint32_t count() const noexcept
Returns the number of set bits.
Definition bitset.h:396
A Bitset implementation with inline storage that can grow if needed.
Definition bitset.h:225