std::bitset< Nb >::reference Class Reference

List of all members.

Public Member Functions

 reference (bitset &__b, size_t position)
 ~reference ()
referenceoperator= (bool x)
referenceoperator= (const reference &__j)
bool operator~ () const
 operator bool () const
referenceflip ()

Private Attributes

WordTM_wp
size_t M_bpos

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 629 of file bitset.


The documentation for this class was generated from the following file:
Generated on Mon Jan 1 22:32:58 2007 for libstdc++-v3 Source by  doxygen 1.5.1