Standard C++ Library Reference ISO/IEC (VERSION3)

typename basic_string<Elem, Tr, Alloc>::size_type
count = basic_string<Elem, Tr, Alloc>::npos);
bitset<Bits>& operator&=(const bitset<Bits>& right);
bitset<Bits>& operator|=(const bitset<Bits>& right);
bitset<Bits>& operator^=(const bitset<Bits>& right);
bitset<Bits>& operator<<=(const bitset<Bits>& pos);
bitset<Bits>& operator>>=(const bitset<Bits>& pos);
bitset<Bits>& set();
bitset<Bits>& set(size_t pos, bool val = true);
bitset<Bits>& reset();
bitset<Bits>& reset(size_t pos);
bitset<Bits>& flip();
bitset<Bits>& flip(size_t pos);
reference operator[](size_t pos);
bool operator[](size_t pos) const;
unsigned long to_ulong() const;
template<class Elem, class Tr, class Alloc>
basic_string<Elem, Tr, Alloc> to_string() const;
size_t count() const;
size_t size() const;
bool operator==(const bitset<Bits>& right) const;
bool operator!=(const bitset<Bits>& right) const;
bool test(size_t pos) const;
bool any() const;
bool none() const;
bitset<Bits> operator<<(size_t pos) const;
bitset<Bits> operator>>(size_t pos) const;
bitset<Bits> operator~() const;
};
The template class describes an object that stores a sequence of Bits bits. A bit is set if its
value is 1, reset if its value is 0. To flip a bit is to change its value from 1 to 0 or from 0 to 1.
When converting between an object of class bitset<Bits> and an object of some integral
type, bit position J corresponds to the bit value 1 << J. The integral value corresponding to
two or more bits is the sum of their bit values.
bitset::any
bool any() const;
The member function returns true if any bit is set in the bit sequence.