Celeritas
0.5.0-86+4a8eea4
|
Reference to a single bit in the bitset. More...
#include <Bitset.hh>
Public Member Functions | |
CELER_CONSTEXPR_FUNCTION | reference (Bitset &b, size_type pos) noexcept |
CELER_CONSTEXPR_FUNCTION | reference (reference const &)=default |
CELER_CONSTEXPR_FUNCTION reference & | operator= (bool x) noexcept |
Assignment for b[i] = x;. | |
CELER_CONSTEXPR_FUNCTION reference & | operator= (reference const &j) noexcept |
Assignment for b[i] = b[j];. | |
CELER_CONSTEXPR_FUNCTION bool | operator~ () const noexcept |
Flips the bit. | |
CELER_CONSTEXPR_FUNCTION | operator bool () const noexcept |
Conversion for bool x = b[i];. | |
CELER_CONSTEXPR_FUNCTION reference & | flip () noexcept |
To support b[i].flip();. | |
Reference to a single bit in the bitset.
This is used to implement the mutable operator[].