[bitset.syn] # 22 General utilities library [[utilities]](./#utilities) ## 22.9 Bitsets [[bitset]](bitset#syn) ### 22.9.1 Header synopsis [bitset.syn] [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L10360) The header defines a class template and several related functions for representing and manipulating fixed-size sequences of bits[.](#1.sentence-1) #include // see [[string.syn]](string.syn "27.4.2 Header synopsis")#include // for istream ([[istream.syn]](istream.syn "31.7.1 Header synopsis")), ostream ([[ostream.syn]](ostream.syn "31.7.2 Header synopsis")), see [[iosfwd.syn]](iosfwd.syn "31.3.1 Header synopsis")namespace std {template class bitset; // [[bitset.operators]](bitset.operators "22.9.4 bitset operators"), bitset operatorstemplateconstexpr bitset operator&(const bitset&, const bitset&) noexcept; templateconstexpr bitset operator|(const bitset&, const bitset&) noexcept; templateconstexpr bitset operator^(const bitset&, const bitset&) noexcept; template basic_istream&operator>>(basic_istream& is, bitset& x); template basic_ostream&operator<<(basic_ostream& os, const bitset& x);}