bn::ibitset::reference class
#include <bn_bitset.h>

Proxy to allow to interact with individual bits of a ibitset.

Constructors, destructors, conversion operators

operator bool() const constexpr
Returns the value of the referenced bit.

Public functions

auto operator~() const -> bool constexpr
Returns the inverse of the referenced bit.
auto operator=(bool value) -> reference& constexpr
Assigns a value to the referenced bit.
auto operator=(const reference& other) -> reference& constexpr
Assigns a value to the referenced bit.
auto flip() -> reference& constexpr
Flips the referenced bit.

Function documentation

reference& bn::ibitset::reference::operator=(bool value) constexpr

Assigns a value to the referenced bit.

Parameters
value Value to assign.
Returns Reference to this.

reference& bn::ibitset::reference::operator=(const reference& other) constexpr

Assigns a value to the referenced bit.

Parameters
other Reference to the value to assign.
Returns Reference to this.

reference& bn::ibitset::reference::flip() constexpr

Flips the referenced bit.

Returns Reference to this.