std::bitset_reference - Man Page

std::bitset< _Nb >::reference

Synopsis

Public Member Functions

constexpr reference (bitset &__b, size_t __pos) noexcept
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.)

Definition at line 853 of file bitset.

Constructor & Destructor Documentation

template<size_t _Nb> constexpr std::bitset< _Nb >::reference::reference (bitset & __b, size_t __pos) [inline], [constexpr], [noexcept]

Definition at line 865 of file bitset.

template<size_t _Nb> std::bitset< _Nb >::reference::~reference () [inline], [noexcept]

Definition at line 878 of file bitset.

Member Function Documentation

template<size_t _Nb> constexpr reference & std::bitset< _Nb >::reference::flip () [inline], [constexpr], [noexcept]

Definition at line 919 of file bitset.

template<size_t _Nb> constexpr std::bitset< _Nb >::reference::operator bool () const [inline], [constexpr], [noexcept]

Definition at line 913 of file bitset.

template<size_t _Nb> constexpr reference & std::bitset< _Nb >::reference::operator= (bool __x) [inline], [constexpr], [noexcept]

Definition at line 884 of file bitset.

template<size_t _Nb> constexpr reference & std::bitset< _Nb >::reference::operator= (const reference & __j) [inline], [constexpr], [noexcept]

Definition at line 896 of file bitset.

template<size_t _Nb> constexpr bool std::bitset< _Nb >::reference::operator~ () const [inline], [constexpr], [noexcept]

Definition at line 908 of file bitset.

Author

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

Info

Thu Jan 19 2023 libstdc++