A publicly accessible nested class, used as a proxy object to allow users to interact with individual bits of a bitset. The primary use of this type is to provide a lvalue that can be returned from operator[].
TBitSetCM | A constant or mutable TBitSet. |
Definition at line 157 of file bitset.inl.
Public Method Index: | |
constexpr | Reference (const Reference &) noexcept=default |
Defaulted copy constructor. | |
constexpr | Reference (TBitSetCM &set, TInterface b) noexcept |
~Reference () noexcept | |
Destructor. (Is declared constexpr with C++23.) | |
constexpr TInterface | Bit () const noexcept |
constexpr Reference & | Flip () noexcept |
constexpr | operator bool () noexcept |
constexpr Reference & | operator= (bool val) noexcept |
Reference & | operator= (const Reference &other) noexcept=default |
constexpr bool | operator== (const Reference &rhs) const noexcept=default |
constexpr bool | operator~ () noexcept |
constexpr const class TBitSet & | TBitSet () const noexcept |
constexpr class TBitSet & | TBitSet () noexcept |
Protected Field Index: | |
TInterface | bit |
The bit number in bitSet this reference addresses. | |
TBitSetCM * | bitSet |
The TBitSet this reference addresses. | |
|
protected |
The bit number in bitSet this reference addresses.
Definition at line 164 of file bitset.inl.
|
protected |
The TBitSet this reference addresses.
Definition at line 165 of file bitset.inl.
|
inlineconstexprnoexcept |
Constructor.
std::bitset::reference
, this constructor is public to allow easy external construction.Definition at line 173 of file bitset.inl.
|
inlinenoexcept |
Destructor. (Is declared constexpr
with C++23.)
Definition at line 181 of file bitset.inl.
|
inlineconstexprnoexcept |
Returns the represented bit number.
Definition at line 191 of file bitset.inl.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Implicit conversion to bool.
Definition at line 212 of file bitset.inl.
|
inlineconstexprnoexcept |
Sets or resets the represented bit.
val | The value to assign to the represented bit. |
this
. Definition at line 207 of file bitset.inl.
|
defaultnoexcept |
Copy assignment operator. (Defaulted, as otherwise implicitly deleted due to user-provided destructor.)
other | The object to copy. |
this
.
|
constexprdefaultnoexcept |
Compares this object to another.
rhs | The right hand side of the comparison. |
true
if the objects reference the same bit in the same bitset, false
otherwise
|
inlineconstexprnoexcept |
Does not manipulate the bit, but returns its negated value.
Definition at line 217 of file bitset.inl.
|
inlineconstexprnoexcept |
Returns the underlying bitset.
Definition at line 201 of file bitset.inl.
|
inlineconstexprnoexcept |
Returns the underlying bitset.
Definition at line 196 of file bitset.inl.