[#bsl-bitset-reference]
= xref:bsl.adoc[bsl]::xref:bsl/bitset.adoc[bitset]::reference
:relfileprefix: ../../
:mrdocs:

This class represents a reference to a modifiable bit inside a `bsl&colon;&colon;bitset`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;bitset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class reference;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/bitset/reference/2constructor.adoc[`reference`]         [.small]#[constructor]#
| Create a `reference` object having the same value as the specified `original` object&period; Note that this copy constructor is generated by the compiler&period;
| xref:bsl/bitset/reference/operator_assign-0b.adoc[`operator&equals;`] 
| Assignment operators
| xref:bsl/bitset/reference/flip.adoc[`flip`] 
| Invert the value of the bit referenced by this object and return a reference offering modifiable access to this object&period;
| xref:bsl/bitset/reference/operator_bitnot.adoc[`operator&#126;`] 
| Return the inverted value of the bit referenced by this object&period; Note that the value of the referenced bit remains unchanged&period;
| xref:bsl/bitset/reference/2conversion.adoc[`operator bool`] 
| Return the value of the bit referenced by this object&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/bitset.adoc[bsl::bitset]`
| This class template provides an STL&hyphen;compliant `bitset`&period; For the requirements of a `bitset` class, consult the second revision of the ISO&sol;IEC 14882 Programming Language c&plus;&plus; (2011)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
