bsl::bitset::reference

This class represents a reference to a modifiable bit inside a bsl::bitset.

Synopsis

Declared in <bslstl_bitset.h>

class reference;

Member Functions

NameDescription
reference [constructor]Create a reference object having the same value as the specified original object. Note that this copy constructor is generated by the compiler.
operator= Assignment operators
flip Invert the value of the bit referenced by this object and return a reference offering modifiable access to this object.
operator~ Return the inverted value of the bit referenced by this object. Note that the value of the referenced bit remains unchanged.
operator bool Return the value of the bit referenced by this object.

Friends

NameDescription
bsl::bitsetThis class template provides an STL-compliant bitset. For the requirements of a bitset class, consult the second revision of the ISO/IEC 14882 Programming Language c++ (2011).