bool none() const bitset Returns true if no bits are set.
bool test(size_t n) const bitset Returns true if bit n is set.
reference operator[](size_t n) bitset Returns a reference to bit n.
bool operator[](size_t n) const bitset Returns true if bit n is set.
unsigned long to_ulong() const bitset Returns an unsigned long corresponding to the bits in *this.
template<class Char, class Traits, class Alloc> basic_string <Char,Traits,Alloc> to_string() const bitset Returns a string representation of *this.
bool operator==(const bitset&) const Equality Comparable The equality operator.
bool operator!=(const bitset&) const Equality Comparable The inequality operator.
bitset operator&(const bitset&, const bitset&) bitset Bitwise and of two bitsets. This is a global function, not a member function.
bitset operator|(const bitset&, const bitset&) bitset Bitwise or of two bitsets. This is a global function, not a member function.
bitset operator^(const bitset&, const bitset&) bitset Bitwise exclusive or of two bitsets. This is a global function, not a member function.
template<class Char, class Traits, size_t N> basic_istream<Char,Traits>& operator>>(basic_istream<Char,Traits>&, bitset<N>&) bitset Extract a bitset from an input stream.
template<class Char, class Traits, size_t N> basic_ostream<Char,Traits>& operator>>(basic_ostream<Char,Traits>&, const bitset<N>&) bitset Output a bitset to an output stream.
New members

These members are not defined in the Assignable, Default Constructible, or Equality Comparable requirements, but are specific to bitset.

Member Description
reference A proxy class that acts as a reference to a single bit. It contains an assignment operator, a conversion to bool, an operator~, and a member function flip. It exists only as a helper class for bitset's operator[]. That is, it supports the expressions x = b[i], b[i] = x, b[i] = b[j], x = ~b[i] , and b[i].flip(). (Where b is a bitset and x is a bool.)
bitset(unsigned long val) Conversion from unsigned long. Constructs a bitset, initializing the first min(N, sizeof(unsigned long) * CHAR_BIT) bits to the corresponding bits in
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату