| 53 | |
| 54 | public: |
| 55 | struct Proxy { |
| 56 | bitset_fixed &_bitset; |
| 57 | fl::u32 _pos; |
| 58 | |
| 59 | Proxy(bitset_fixed &bitset, fl::u32 pos) FL_NOEXCEPT : _bitset(bitset), _pos(pos) {} |
| 60 | |
| 61 | Proxy &operator=(bool value) FL_NOEXCEPT { |
| 62 | _bitset.set(_pos, value); |
| 63 | return *this; |
| 64 | } |
| 65 | |
| 66 | operator bool() const FL_NOEXCEPT { return _bitset.test(_pos); } |
| 67 | }; |
| 68 | |
| 69 | Proxy operator[](fl::u32 pos) FL_NOEXCEPT { return Proxy(*this, pos); } |
| 70 |
no test coverage detected