Indexed_bitset observers¶
-
constexpr size_t indexed_bitset::size() const¶
- Returns
The number of individual bits in the bitset
Extensions¶
-
static constexpr bool indexed_bitset::in_range(index)¶
static constexpr method that returns
trueif the argument is a valid index value for this bitset, ie callingoperator[value]is well defined behavior. Returnsfalseotherwise.
Conversions¶
-
constexpr T indexed_bitset::to() const¶
Convert the bitset to an integer value that has the same bits on, bit 0 being the least significant of the resulting integer.
Tcan be any unsigned integral type that has at least the same number of bits than the bitset.