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

Synopsis

Declared in <bslstl_bitset.h>

class reference;

Member Functions

Name

Description

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

Name

Description

bsl::bitset

STL‐compliant fixed‐size sequence of N bits.

Created with MrDocs