Tests whether the bit at position pos is set.
| 548 | |
| 549 | /// Tests whether the bit at position pos is set. |
| 550 | bool test(fl::u32 pos) const FL_NOEXCEPT { |
| 551 | if (_storage.template is<fixed_bitset>()) { |
| 552 | return pos < N ? _storage.template ptr<fixed_bitset>()->test(pos) |
| 553 | : false; |
| 554 | } else { |
| 555 | return _storage.template ptr<bitset_dynamic>()->test(pos); |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | /// Returns the value of the bit at position pos. |
| 560 | bool operator[](fl::u32 pos) const FL_NOEXCEPT { return test(pos); } |