std::bitset_reference(3)

std::bitset_reference3

Usage

#include <bitset>

Public Member Functions

reference (const reference &)=default
constexpr reference & flip () noexcept
constexpr operator bool () const noexcept
constexpr reference & operator= (bool __x) noexcept
constexpr reference & operator= (const reference &__j) noexcept
constexpr bool operator~ () const noexcept

Friends

class bitset

Detailed Description

template<size_t _Nb>

class std::bitset< _Nb >::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.)

Releases

4 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. Arch

Author

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

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.