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

This 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).

Created with MrDocs