---
name: "std::tr2::dynamic_bitset_reference"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::tr2::dynamic_bitset_reference"
---

# std::tr2::dynamic\_bitset\_reference(3)

## NAME

std::tr2::dynamic\_bitset\< \_WordT, \_Alloc \>::reference

## SYNOPSIS

\#include \<dynamic\_bitset\>

### Public Member Functions

**reference** (dynamic\_bitset &\_\_b, size\_type \_\_pos) noexcept\
 reference & **flip** () noexcept\
 **operator bool** () const noexcept\
 reference & **operator=** (bool \_\_x) noexcept\
 reference & **operator=** (const reference &\_\_j) noexcept\
 bool **operator~** () const noexcept\

### Friends

class **dynamic\_bitset**\

## Detailed Description

### template\<typename \_WordT = unsigned long long, typename \_Alloc = std::allocator\<\_WordT\>\>

class std::tr2::dynamic\_bitset\< \_WordT, \_Alloc \>::reference"This encapsulates the concept of a single bit. An instance of this class is a proxy for an actual bit; this way the individual bit operations are done as faster word-size bitwise instructions.

Most users will never need to use this class directly; conversions to and from bool are automatic and should be transparent. Overloaded operators help to preserve the illusion.

(On a typical system, this "bit %reference" is 64 times the size of an actual bit. Ha.)

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
