Returns the number of set bits.
| 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 { |