<bitset>

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at <bitset>.

Defines the template class bitset and two supporting template functions for representing and manipulating fixed-size sequences of bits.

  
#include <bitset>  
  

Operators

operator&Performs a bitwise AND between two bitsets.
operator<<Inserts a text representation of the bit sequence into the standard output stream.
operator>>Inserts a text representation of the bit sequence into the standard input stream.
operator^Performs a bitwise EXCLUSIVE-OR between two bitsets.
operator|Performs a bitwise OR between two bitsets.

Classes

bitset ClassThe template class describes a type of object that stores a sequence consisting of a fixed number of bits that provide a compact way of keeping flags for a set of items or conditions.

Header Files Reference
Thread Safety in the C++ Standard Library

Show: