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>>;
338 __throw_overflow_error("bitset to_ulong overflow error");
358 __throw_overflow_error("bitset to_ullong overflow error");
664 template <size_t _Size> class _LIBCPP_TEMPLATE_VIS bitset;
665 template <size_t _Size> struct hash<bitset<_Size> >;
668 class _LIBCPP_TEMPLATE_VIS bitset
680 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
682 bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
684 explicit bitset(const _CharT* __str,
688 explicit bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
694 // 23.3.5.2 bitset operations:
696 bitset& operator&=(const bitset& __rhs) _NOEXCEPT;
698 bitset& operator|=(const bitset& __rhs) _NOEXCEPT;
700 bitset& operator^=(const bitset& __rhs) _NOEXCEPT;
701 bitset& operator<<=(size_t __pos) _NOEXCEPT;
702 bitset& operator>>=(size_t __pos) _NOEXCEPT;
704 bitset& set() _NOEXCEPT;
705 bitset& set(size_t __pos, bool __val = true);
707 bitset& reset() _NOEXCEPT;
708 bitset& reset(size_t __pos);
710 bitset operator~() const _NOEXCEPT;
712 bitset& flip() _NOEXCEPT;
713 bitset& flip(size_t __pos);
741 bool operator==(const bitset& __rhs) const _NOEXCEPT;
743 bool operator!=(const bitset& __rhs) const _NOEXCEPT;
751 bitset operator<<(size_t __pos) const _NOEXCEPT;
753 bitset operator>>(size_t __pos) const _NOEXCEPT;
760 friend struct hash<bitset>;
765 bitset<_Size>::bitset(const _CharT* __str,
772 __throw_invalid_argument("bitset string ctor has invalid argument");
789 bitset<_Size>::bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
795 __throw_out_of_range("bitset string pos out of range");
800 __throw_invalid_argument("bitset string ctor has invalid argument");
817 bitset<_Size>&
818 bitset<_Size>::operator&=(const bitset& __rhs) _NOEXCEPT
826 bitset<_Size>&
827 bitset<_Size>::operator|=(const bitset& __rhs) _NOEXCEPT
835 bitset<_Size>&
836 bitset<_Size>::operator^=(const bitset& __rhs) _NOEXCEPT
843 bitset<_Size>&
844 bitset<_Size>::operator<<=(size_t __pos) _NOEXCEPT
853 bitset<_Size>&
854 bitset<_Size>::operator>>=(size_t __pos) _NOEXCEPT
864 bitset<_Size>&
865 bitset<_Size>::set() _NOEXCEPT
872 bitset<_Size>&
873 bitset<_Size>::set(size_t __pos, bool __val)
876 __throw_out_of_range("bitset set argument out of range");
884 bitset<_Size>&
885 bitset<_Size>::reset() _NOEXCEPT
892 bitset<_Size>&
893 bitset<_Size>::reset(size_t __pos)
896 __throw_out_of_range("bitset reset argument out of range");
904 bitset<_Size>
905 bitset<_Size>::operator~() const _NOEXCEPT
907 bitset __x(*this);
914 bitset<_Size>&
915 bitset<_Size>::flip() _NOEXCEPT
922 bitset<_Size>&
923 bitset<_Size>::flip(size_t __pos)
926 __throw_out_of_range("bitset flip argument out of range");
936 bitset<_Size>::to_ulong() const
944 bitset<_Size>::to_ullong() const
952 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
967 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
976 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
984 bitset<_Size>::to_string(char __zero, char __one) const
992 bitset<_Size>::count() const _NOEXCEPT
1000 bitset<_Size>::operator==(const bitset& __rhs) const _NOEXCEPT
1008 bitset<_Size>::operator!=(const bitset& __rhs) const _NOEXCEPT
1015 bitset<_Size>::test(size_t __pos) const
1018 __throw_out_of_range("bitset test argument out of range");
1026 bitset<_Size>::all() const _NOEXCEPT
1034 bitset<_Size>::any() const _NOEXCEPT
1041 bitset<_Size>
1042 bitset<_Size>::operator<<(size_t __pos) const _NOEXCEPT
1044 bitset __r = *this;
1051 bitset<_Size>
1052 bitset<_Size>::operator>>(size_t __pos) const _NOEXCEPT
1054 bitset __r = *this;
1061 bitset<_Size>
1062 operator&(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1064 bitset<_Size> __r = __x;
1071 bitset<_Size>
1072 operator|(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1074 bitset<_Size> __r = __x;
1081 bitset<_Size>
1082 operator^(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1084 bitset<_Size> __r = __x;
1090 struct _LIBCPP_TEMPLATE_VIS hash<bitset<_Size> >
1091 : public unary_function<bitset<_Size>, size_t>
1094 size_t operator()(const bitset<_Size>& __bs) const _NOEXCEPT
1100 operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x);
1104 operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x);