BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::bitset< N >::reference Class Reference

#include <bslstl_bitset.h>

Public Member Functions

referenceoperator= (bool x) BSLS_KEYWORD_NOEXCEPT
 
referenceoperator= (const reference &x) BSLS_KEYWORD_NOEXCEPT
 
referenceflip () BSLS_KEYWORD_NOEXCEPT
 
 operator bool () const BSLS_KEYWORD_NOEXCEPT
 Return the value of the bit referenced by this object.
 
bool operator~ () const BSLS_KEYWORD_NOEXCEPT
 

Friends

class bitset
 

Detailed Description

template<std::size_t N>
class bsl::bitset< N >::reference

This class represents a reference to a modifiable bit inside a bsl::bitset.

See bslstl_bitset

Member Function Documentation

◆ flip()

template<std::size_t N>
bitset< N >::reference & bsl::bitset< N >::reference::flip ( )
inline

Invert the value of the bit referenced by this object and return a reference offering modifiable access to this object.

◆ operator bool()

template<std::size_t N>
bsl::bitset< N >::reference::operator bool ( ) const
inline

◆ operator=() [1/2]

template<std::size_t N>
bitset< N >::reference & bsl::bitset< N >::reference::operator= ( bool  x)
inline

Assign to the bit referenced by this object the specified value x and return a reference offering modifiable access to this object.

◆ operator=() [2/2]

template<std::size_t N>
bitset< N >::reference & bsl::bitset< N >::reference::operator= ( const reference x)
inline

Assign this object to refer to the same bit as the specified x and return a reference offering modifiable access to this object.

◆ operator~()

template<std::size_t N>
bool bsl::bitset< N >::reference::operator~ ( ) const
inline

Return the inverted value of the bit referenced by this object. Note that the value of the referenced bit remains unchanged.

Friends And Related Symbol Documentation

◆ bitset

template<std::size_t N>
friend class bitset
friend

The documentation for this class was generated from the following file: