Models a reference to a specific bit in a variable. Can be a statically-defined bit number (BIT_NUM != dynamic_bit_number).
More...
|
| constexpr | bit_reference (VALUE_TYPE &ref, size_t bitnum) |
| constexpr | bit_reference (VALUE_TYPE &ref, detail::bit_num_t< BIT_NUM >={}) noexcept |
| constexpr bit_reference & | operator= (bool val) noexcept |
| constexpr | operator bool () const noexcept |
| template<bit_integral OTHER_VALUE_TYPE, size_t OTHER_BIT_NUM> |
| constexpr bool | operator== (bit_reference< OTHER_VALUE_TYPE, OTHER_BIT_NUM > const &other) const noexcept |
| template<bit_integral OTHER_VALUE_TYPE, size_t OTHER_BIT_NUM> |
| constexpr auto | operator<=> (bit_reference< OTHER_VALUE_TYPE, OTHER_BIT_NUM > const &other) const noexcept |
| constexpr auto & | integer_value () const noexcept |
| | Return the value of the referenced variable.
|
| constexpr size_t | bit_number () const noexcept |
| | Returns the bit number of the referenced bit.
|
template<bit_integral VALUE_TYPE, size_t BIT_NUM = dynamic_bit_number>
struct ghassanpl::bit_reference< VALUE_TYPE, BIT_NUM >
Models a reference to a specific bit in a variable. Can be a statically-defined bit number (BIT_NUM != dynamic_bit_number).
Definition at line 309 of file bits.h.