Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<bitset>
Include the standard header <bitset> to define the template class bitset and two
supporting templates.
namespace std {
template<size_t Bits>
 class bitset;
 // TEMPLATE FUNCTIONS
template<class Elem, class Tr, size_t Bits>
 basic_istream<Elem, Tr>&
 operator>>(basic_istream<Elem, >& istr,
 bitset<Bits>& right);
template<class Elem, class Tr, size_t Bits>
 basic_ostream<Elem, Tr>&
 operator<<(basic_ostream<Elem, Tr>& ostr,
 const bitset<Bits>& right);
 };
bitset
any · bitset · count · element_type · flip · none · operator!= ·
operator&= · operator<< · operator<<= · operator== · operator>> ·
operator>>= · operator[] · operator^= · operator|= · operator~ ·
reference · reset · set · size · test · to_string · to_ulong
template<size_t Bits>
 class bitset {
public:
 typedef bool element_type;
 class reference;
 bitset();
 bitset(unsigned long val);
 template<class Elem, class Tr, class Alloc>
 explicit bitset(const basic_string<Elem, Tr, Alloc>& str,
 typename basic_string<Elem, Tr, Alloc>::size_type
 pos = 0,










