| 成员函数 | bitset& operator&= (const bitset& rhs);bitset& operator|= (const bitset& rhs);bitset& operator^= (const bitset& rhs);bitset& operator<<= (size_t pos);bitset& operator>>= (size_t pos);bitset operator~() const;bitset operator<<(size_t pos) const;bitset operator>>(size_t pos) const;bool operator== (const bitset& rhs) const;bool operator!= (const bitset& rhs) const; |
|---|---|
| 非成员函数 | template<size_t N> bitset<N> operator& (const bitset<N>& lhs, const bitset<N>& rhs);template<size_t N> bitset<N> operator| (const bitset<N>& lhs, const bitset<N>& rhs);template<size_t N> bitset<N> operator^ (const bitset<N>& lhs, const bitset<N>& rhs); |
| iostream 插入器/提取器 | template<class charT, class traits, size_t N> basic_istream<charT, traits>& operator>> (basic_istream<charT,traits>& is, bitset<N>& rhs);template<class charT, class traits, size_t N> basic_ostream<charT, traits>& operator<< (basic_ostream<charT,traits>& os, const bitset<N>& rhs); |
| 成员函数 | bitset& operator&= (const bitset& rhs) noexcept;bitset& operator|= (const bitset& rhs) noexcept;bitset& operator^= (const bitset& rhs) noexcept;bitset& operator<<= (size_t pos) noexcept;bitset& operator>>= (size_t pos) noexcept;bitset operator~() const noexcept;bitset operator<<(size_t pos) const noexcept;bitset operator>>(size_t pos) const noexcept;bool operator== (const bitset& rhs) const noexcept;bool operator!= (const bitset& rhs) const noexcept; |
|---|---|
| 非成员函数 | template<size_t N> bitset<N> operator& (const bitset<N>& lhs, const bitset<N>& rhs) noexcept;template<size_t N> bitset<N> operator| (const bitset<N>& lhs, const bitset<N>& rhs) noexcept;template<size_t N> bitset<N> operator^ (const bitset<N>& lhs, const bitset<N>& rhs) noexcept; |
| iostream 插入器/提取器 | template<class charT, class traits, size_t N> basic_istream<charT, traits>& operator>> (basic_istream<charT,traits>& is, bitset<N>& rhs);template<class charT, class traits, size_t N> basic_ostream<charT, traits>& operator<< (basic_ostream<charT,traits>& os, const bitset<N>& rhs); |
'0' 和 '1' 字符序列。*this,is 或 os)。true 或 false)。 |
|
1010 0010 0011 1100 0110 1100 0110 0001 0 1 0010 0111 0101 |