Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 1.99 KB

File metadata and controls

72 lines (60 loc) · 1.99 KB
title <bitset> | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
f1_keywords
std::<bitset>
std.<bitset>
<bitset>
dev_langs
C++
helpviewer_keywords
<bitset> header
bitset header
ms.assetid af30a9b9-489e-46e3-9d29-5f3ea07ae6dc
caps.latest.revision 19
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

<bitset>

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

Syntax

  
#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 Class The 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.

See Also

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