header_utils
|
Models a reference to a specific bit in a variable. Can be a statically-defined bit number (BIT_NUM != dynamic_bit_number) More...
#include <bits.h>
Inherits ghassanpl::detail::bit_num_base< VALUE_TYPE, BIT_NUM >.
Public Types | |
using | base_type = detail::bit_num_base< VALUE_TYPE, BIT_NUM > |
Public Member Functions | |
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 |
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. | |
Static Public Attributes | |
static constexpr size_t | value_bit_count |
static constexpr bool | is_static |
static constexpr bool | is_const |
Models a reference to a specific bit in a variable. Can be a statically-defined bit number (BIT_NUM != dynamic_bit_number)
using ghassanpl::bit_reference< VALUE_TYPE, BIT_NUM >::base_type = detail::bit_num_base<VALUE_TYPE, BIT_NUM> |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
staticconstexpr |
|
staticconstexpr |