Lines Matching full:bitset
2 //===---------------------------- bitset ----------------------------------===//
15 bitset synopsis
23 class bitset
29 friend class bitset;
41 constexpr bitset() noexcept;
42 constexpr bitset(unsigned long long val) noexcept;
44 explicit bitset(const charT* str,
48 explicit bitset(const basic_string<charT,traits,Allocator>& str,
54 // 23.3.5.2 bitset operations:
55 bitset& operator&=(const bitset& rhs) noexcept;
56 bitset& operator|=(const bitset& rhs) noexcept;
57 bitset& operator^=(const bitset& rhs) noexcept;
58 bitset& operator<<=(size_t pos) noexcept;
59 bitset& operator>>=(size_t pos) noexcept;
60 bitset& set() noexcept;
61 bitset& set(size_t pos, bool val = true);
62 bitset& reset() noexcept;
63 bitset& reset(size_t pos);
64 bitset operator~() const noexcept;
65 bitset& flip() noexcept;
66 bitset& flip(size_t pos);
82 bool operator==(const bitset& rhs) const noexcept;
83 bool operator!=(const bitset& rhs) const noexcept;
88 bitset operator<<(size_t pos) const noexcept;
89 bitset operator>>(size_t pos) const noexcept;
92 // 23.3.5.3 bitset operators:
94 bitset<N> operator&(const bitset<N>&, const bitset<N>&) noexcept;
97 bitset<N> operator|(const bitset<N>&, const bitset<N>&) noexcept;
100 bitset<N> operator^(const bitset<N>&, const bitset<N>&) noexcept;
104 operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
108 operator<<(basic_ostream<charT, traits>& os, const bitset<N>& x);
110 template <size_t N> struct hash<std::bitset<N>>;
326 __throw_overflow_error("bitset to_ulong overflow error");
346 __throw_overflow_error("bitset to_ullong overflow error");
649 template <size_t _Size> class _LIBCPP_TEMPLATE_VIS bitset;
650 template <size_t _Size> struct hash<bitset<_Size> >;
653 class _LIBCPP_TEMPLATE_VIS bitset
665 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
667 bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
669 explicit bitset(const _CharT* __str,
673 explicit bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
679 // 23.3.5.2 bitset operations:
681 bitset& operator&=(const bitset& __rhs) _NOEXCEPT;
683 bitset& operator|=(const bitset& __rhs) _NOEXCEPT;
685 bitset& operator^=(const bitset& __rhs) _NOEXCEPT;
686 bitset& operator<<=(size_t __pos) _NOEXCEPT;
687 bitset& operator>>=(size_t __pos) _NOEXCEPT;
689 bitset& set() _NOEXCEPT;
690 bitset& set(size_t __pos, bool __val = true);
692 bitset& reset() _NOEXCEPT;
693 bitset& reset(size_t __pos);
695 bitset operator~() const _NOEXCEPT;
697 bitset& flip() _NOEXCEPT;
698 bitset& flip(size_t __pos);
726 bool operator==(const bitset& __rhs) const _NOEXCEPT;
728 bool operator!=(const bitset& __rhs) const _NOEXCEPT;
736 bitset operator<<(size_t __pos) const _NOEXCEPT;
738 bitset operator>>(size_t __pos) const _NOEXCEPT;
745 friend struct hash<bitset>;
750 bitset<_Size>::bitset(const _CharT* __str,
757 __throw_invalid_argument("bitset string ctor has invalid argument");
774 bitset<_Size>::bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
780 __throw_out_of_range("bitset string pos out of range");
785 __throw_invalid_argument("bitset string ctor has invalid argument");
802 bitset<_Size>&
803 bitset<_Size>::operator&=(const bitset& __rhs) _NOEXCEPT
811 bitset<_Size>&
812 bitset<_Size>::operator|=(const bitset& __rhs) _NOEXCEPT
820 bitset<_Size>&
821 bitset<_Size>::operator^=(const bitset& __rhs) _NOEXCEPT
828 bitset<_Size>&
829 bitset<_Size>::operator<<=(size_t __pos) _NOEXCEPT
838 bitset<_Size>&
839 bitset<_Size>::operator>>=(size_t __pos) _NOEXCEPT
849 bitset<_Size>&
850 bitset<_Size>::set() _NOEXCEPT
857 bitset<_Size>&
858 bitset<_Size>::set(size_t __pos, bool __val)
861 __throw_out_of_range("bitset set argument out of range");
869 bitset<_Size>&
870 bitset<_Size>::reset() _NOEXCEPT
877 bitset<_Size>&
878 bitset<_Size>::reset(size_t __pos)
881 __throw_out_of_range("bitset reset argument out of range");
889 bitset<_Size>
890 bitset<_Size>::operator~() const _NOEXCEPT
892 bitset __x(*this);
899 bitset<_Size>&
900 bitset<_Size>::flip() _NOEXCEPT
907 bitset<_Size>&
908 bitset<_Size>::flip(size_t __pos)
911 __throw_out_of_range("bitset flip argument out of range");
921 bitset<_Size>::to_ulong() const
929 bitset<_Size>::to_ullong() const
937 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
952 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
961 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
969 bitset<_Size>::to_string(char __zero, char __one) const
977 bitset<_Size>::count() const _NOEXCEPT
985 bitset<_Size>::operator==(const bitset& __rhs) const _NOEXCEPT
993 bitset<_Size>::operator!=(const bitset& __rhs) const _NOEXCEPT
1000 bitset<_Size>::test(size_t __pos) const
1003 __throw_out_of_range("bitset test argument out of range");
1011 bitset<_Size>::all() const _NOEXCEPT
1019 bitset<_Size>::any() const _NOEXCEPT
1026 bitset<_Size>
1027 bitset<_Size>::operator<<(size_t __pos) const _NOEXCEPT
1029 bitset __r = *this;
1036 bitset<_Size>
1037 bitset<_Size>::operator>>(size_t __pos) const _NOEXCEPT
1039 bitset __r = *this;
1046 bitset<_Size>
1047 operator&(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1049 bitset<_Size> __r = __x;
1056 bitset<_Size>
1057 operator|(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1059 bitset<_Size> __r = __x;
1066 bitset<_Size>
1067 operator^(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1069 bitset<_Size> __r = __x;
1075 struct _LIBCPP_TEMPLATE_VIS hash<bitset<_Size> >
1076 : public unary_function<bitset<_Size>, size_t>
1079 size_t operator()(const bitset<_Size>& __bs) const _NOEXCEPT
1085 operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x);
1089 operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x);