Reference to a bit.
Synopsis
Declared in <folly/container/detail/BitIteratorDetail.h>
template<
class Ref,
class Value>
class BitReference;
Description
Templatize on both parent reference and value types to capture const‐ness correctly and to work with the case where Ref is a reference‐like type (not T&), just like our BitReference here.
Member Functions
Name |
Description |
|
Construct a reference to a single bit within a parent reference. |
Assign a boolean value to the referenced bit. |
|
Clear the referenced bit to 0. |
|
Toggle the referenced bit. |
|
Set the referenced bit to 1. |
|
Return the value of the referenced bit. |
Created with MrDocs