Lines Matching refs:bitset

14     bitset synopsis
22 class bitset
28 friend class bitset;
40 constexpr bitset() noexcept;
41 constexpr bitset(unsigned long long val) noexcept;
43 explicit bitset(const charT* str,
47 explicit bitset(const basic_string<charT,traits,Allocator>& str,
53 // 23.3.5.2 bitset operations:
54 bitset& operator&=(const bitset& rhs) noexcept; // constexpr since C++23
55 bitset& operator|=(const bitset& rhs) noexcept; // constexpr since C++23
56 bitset& operator^=(const bitset& rhs) noexcept; // constexpr since C++23
57 bitset& operator<<=(size_t pos) noexcept; // constexpr since C++23
58 bitset& operator>>=(size_t pos) noexcept; // constexpr since C++23
59 bitset& set() noexcept; // constexpr since C++23
60 bitset& set(size_t pos, bool val = true); // constexpr since C++23
61 bitset& reset() noexcept; // constexpr since C++23
62 bitset& reset(size_t pos); // constexpr since C++23
63 bitset operator~() const noexcept; // constexpr since C++23
64 bitset& flip() noexcept; // constexpr since C++23
65 bitset& flip(size_t pos); // constexpr since C++23
81 bool operator==(const bitset& rhs) const noexcept; // constexpr since C++23
82 bool operator!=(const bitset& rhs) const noexcept; // constexpr since C++23
87 bitset<N> operator<<(size_t pos) const noexcept; // constexpr since C++23
88 bitset<N> operator>>(size_t pos) const noexcept; // constexpr since C++23
91 // 23.3.5.3 bitset operators:
93 bitset<N> operator&(const bitset<N>&, const bitset<N>&) noexcept; // constexpr since C++23
96 bitset<N> operator|(const bitset<N>&, const bitset<N>&) noexcept; // constexpr since C++23
99 bitset<N> operator^(const bitset<N>&, const bitset<N>&) noexcept; // constexpr since C++23
103 operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
107 operator<<(basic_ostream<charT, traits>& os, const bitset<N>& x);
109 template <size_t N> struct hash<std::bitset<N>>;
129 // [bitset.syn]
349 __throw_overflow_error("bitset to_ulong overflow error");
369 __throw_overflow_error("bitset to_ullong overflow error");
675 template <size_t _Size> class _LIBCPP_TEMPLATE_VIS bitset;
676 template <size_t _Size> struct hash<bitset<_Size> >;
679 class _LIBCPP_TEMPLATE_VIS bitset
691 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
693 bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
696 explicit bitset(const _CharT* __str,
701 explicit bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
707 // 23.3.5.2 bitset operations:
709 bitset& operator&=(const bitset& __rhs) _NOEXCEPT;
711 bitset& operator|=(const bitset& __rhs) _NOEXCEPT;
713 bitset& operator^=(const bitset& __rhs) _NOEXCEPT;
715 bitset& operator<<=(size_t __pos) _NOEXCEPT;
717 bitset& operator>>=(size_t __pos) _NOEXCEPT;
719 bitset& set() _NOEXCEPT;
721 bitset& set(size_t __pos, bool __val = true);
723 bitset& reset() _NOEXCEPT;
725 bitset& reset(size_t __pos);
727 bitset operator~() const _NOEXCEPT;
729 bitset& flip() _NOEXCEPT;
731 bitset& flip(size_t __pos);
763 bool operator==(const bitset& __rhs) const _NOEXCEPT;
765 bool operator!=(const bitset& __rhs) const _NOEXCEPT;
774 bitset operator<<(size_t __pos) const _NOEXCEPT;
776 bitset operator>>(size_t __pos) const _NOEXCEPT;
783 friend struct hash<bitset>;
789 bitset<_Size>::bitset(const _CharT* __str,
796 __throw_invalid_argument("bitset string ctor has invalid argument");
811 bitset<_Size>::bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
817 __throw_out_of_range("bitset string pos out of range");
822 __throw_invalid_argument("bitset string ctor has invalid argument");
837 bitset<_Size>&
838 bitset<_Size>::operator&=(const bitset& __rhs) _NOEXCEPT
847 bitset<_Size>&
848 bitset<_Size>::operator|=(const bitset& __rhs) _NOEXCEPT
857 bitset<_Size>&
858 bitset<_Size>::operator^=(const bitset& __rhs) _NOEXCEPT
866 bitset<_Size>&
867 bitset<_Size>::operator<<=(size_t __pos) _NOEXCEPT
877 bitset<_Size>&
878 bitset<_Size>::operator>>=(size_t __pos) _NOEXCEPT
889 bitset<_Size>&
890 bitset<_Size>::set() _NOEXCEPT
898 bitset<_Size>&
899 bitset<_Size>::set(size_t __pos, bool __val)
902 __throw_out_of_range("bitset set argument out of range");
911 bitset<_Size>&
912 bitset<_Size>::reset() _NOEXCEPT
920 bitset<_Size>&
921 bitset<_Size>::reset(size_t __pos)
924 __throw_out_of_range("bitset reset argument out of range");
933 bitset<_Size>
934 bitset<_Size>::operator~() const _NOEXCEPT
936 bitset __x(*this);
944 bitset<_Size>&
945 bitset<_Size>::flip() _NOEXCEPT
953 bitset<_Size>&
954 bitset<_Size>::flip(size_t __pos)
957 __throw_out_of_range("bitset flip argument out of range");
968 bitset<_Size>::to_ulong() const
977 bitset<_Size>::to_ullong() const
986 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
1002 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
1012 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
1021 bitset<_Size>::to_string(char __zero, char __one) const
1030 bitset<_Size>::count() const _NOEXCEPT
1039 bitset<_Size>::operator==(const bitset& __rhs) const _NOEXCEPT
1048 bitset<_Size>::operator!=(const bitset& __rhs) const _NOEXCEPT
1056 bitset<_Size>::test(size_t __pos) const
1059 __throw_out_of_range("bitset test argument out of range");
1068 bitset<_Size>::all() const _NOEXCEPT
1077 bitset<_Size>::any() const _NOEXCEPT
1085 bitset<_Size>
1086 bitset<_Size>::operator<<(size_t __pos) const _NOEXCEPT
1088 bitset __r = *this;
1096 bitset<_Size>
1097 bitset<_Size>::operator>>(size_t __pos) const _NOEXCEPT
1099 bitset __r = *this;
1106 bitset<_Size>
1107 operator&(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1109 bitset<_Size> __r = __x;
1116 bitset<_Size>
1117 operator|(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1119 bitset<_Size> __r = __x;
1126 bitset<_Size>
1127 operator^(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1129 bitset<_Size> __r = __x;
1135 struct _LIBCPP_TEMPLATE_VIS hash<bitset<_Size> >
1136 : public __unary_function<bitset<_Size>, size_t>
1139 size_t operator()(const bitset<_Size>& __bs) const _NOEXCEPT
1145 operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x);
1149 operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x);