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 true if the argument is a valid index value for this bitset, ie calling operator[value] is well defined behavior. Returns false otherwise.

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. T can be any unsigned integral type that has at least the same number of bits than the bitset.