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;
55 bitset& operator|=(const bitset& rhs) noexcept;
56 bitset& operator^=(const bitset& rhs) noexcept;
57 bitset& operator<<=(size_t pos) noexcept;
58 bitset& operator>>=(size_t pos) noexcept;
59 bitset& set() noexcept;
60 bitset& set(size_t pos, bool val = true);
61 bitset& reset() noexcept;
62 bitset& reset(size_t pos);
63 bitset operator~() const noexcept;
64 bitset& flip() noexcept;
65 bitset& flip(size_t pos);
81 bool operator==(const bitset& rhs) const noexcept;
82 bool operator!=(const bitset& rhs) const noexcept;
87 bitset operator<<(size_t pos) const noexcept;
88 bitset operator>>(size_t pos) const noexcept;
91 // 23.3.5.3 bitset operators:
93 bitset<N> operator&(const bitset<N>&, const bitset<N>&) noexcept;
96 bitset<N> operator|(const bitset<N>&, const bitset<N>&) noexcept;
99 bitset<N> operator^(const bitset<N>&, const bitset<N>&) noexcept;
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>>;
343 __throw_overflow_error("bitset to_ulong overflow error");
363 __throw_overflow_error("bitset to_ullong overflow error");
669 template <size_t _Size> class _LIBCPP_TEMPLATE_VIS bitset;
670 template <size_t _Size> struct hash<bitset<_Size> >;
673 class _LIBCPP_TEMPLATE_VIS bitset
685 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
687 bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
689 explicit bitset(const _CharT* __str,
693 explicit bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
699 // 23.3.5.2 bitset operations:
701 bitset& operator&=(const bitset& __rhs) _NOEXCEPT;
703 bitset& operator|=(const bitset& __rhs) _NOEXCEPT;
705 bitset& operator^=(const bitset& __rhs) _NOEXCEPT;
706 bitset& operator<<=(size_t __pos) _NOEXCEPT;
707 bitset& operator>>=(size_t __pos) _NOEXCEPT;
709 bitset& set() _NOEXCEPT;
710 bitset& set(size_t __pos, bool __val = true);
712 bitset& reset() _NOEXCEPT;
713 bitset& reset(size_t __pos);
715 bitset operator~() const _NOEXCEPT;
717 bitset& flip() _NOEXCEPT;
718 bitset& flip(size_t __pos);
749 bool operator==(const bitset& __rhs) const _NOEXCEPT;
751 bool operator!=(const bitset& __rhs) const _NOEXCEPT;
759 bitset operator<<(size_t __pos) const _NOEXCEPT;
761 bitset operator>>(size_t __pos) const _NOEXCEPT;
768 friend struct hash<bitset>;
773 bitset<_Size>::bitset(const _CharT* __str,
780 __throw_invalid_argument("bitset string ctor has invalid argument");
794 bitset<_Size>::bitset(const basic_string<_CharT,_Traits,_Allocator>& __str,
800 __throw_out_of_range("bitset string pos out of range");
805 __throw_invalid_argument("bitset string ctor has invalid argument");
819 bitset<_Size>&
820 bitset<_Size>::operator&=(const bitset& __rhs) _NOEXCEPT
828 bitset<_Size>&
829 bitset<_Size>::operator|=(const bitset& __rhs) _NOEXCEPT
837 bitset<_Size>&
838 bitset<_Size>::operator^=(const bitset& __rhs) _NOEXCEPT
845 bitset<_Size>&
846 bitset<_Size>::operator<<=(size_t __pos) _NOEXCEPT
855 bitset<_Size>&
856 bitset<_Size>::operator>>=(size_t __pos) _NOEXCEPT
866 bitset<_Size>&
867 bitset<_Size>::set() _NOEXCEPT
874 bitset<_Size>&
875 bitset<_Size>::set(size_t __pos, bool __val)
878 __throw_out_of_range("bitset set argument out of range");
886 bitset<_Size>&
887 bitset<_Size>::reset() _NOEXCEPT
894 bitset<_Size>&
895 bitset<_Size>::reset(size_t __pos)
898 __throw_out_of_range("bitset reset argument out of range");
906 bitset<_Size>
907 bitset<_Size>::operator~() const _NOEXCEPT
909 bitset __x(*this);
916 bitset<_Size>&
917 bitset<_Size>::flip() _NOEXCEPT
924 bitset<_Size>&
925 bitset<_Size>::flip(size_t __pos)
928 __throw_out_of_range("bitset flip argument out of range");
938 bitset<_Size>::to_ulong() const
946 bitset<_Size>::to_ullong() const
954 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
969 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
978 bitset<_Size>::to_string(_CharT __zero, _CharT __one) const
986 bitset<_Size>::to_string(char __zero, char __one) const
994 bitset<_Size>::count() const _NOEXCEPT
1002 bitset<_Size>::operator==(const bitset& __rhs) const _NOEXCEPT
1010 bitset<_Size>::operator!=(const bitset& __rhs) const _NOEXCEPT
1017 bitset<_Size>::test(size_t __pos) const
1020 __throw_out_of_range("bitset test argument out of range");
1028 bitset<_Size>::all() const _NOEXCEPT
1036 bitset<_Size>::any() const _NOEXCEPT
1043 bitset<_Size>
1044 bitset<_Size>::operator<<(size_t __pos) const _NOEXCEPT
1046 bitset __r = *this;
1053 bitset<_Size>
1054 bitset<_Size>::operator>>(size_t __pos) const _NOEXCEPT
1056 bitset __r = *this;
1063 bitset<_Size>
1064 operator&(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1066 bitset<_Size> __r = __x;
1073 bitset<_Size>
1074 operator|(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1076 bitset<_Size> __r = __x;
1083 bitset<_Size>
1084 operator^(const bitset<_Size>& __x, const bitset<_Size>& __y) _NOEXCEPT
1086 bitset<_Size> __r = __x;
1092 struct _LIBCPP_TEMPLATE_VIS hash<bitset<_Size> >
1093 : public __unary_function<bitset<_Size>, size_t>
1096 size_t operator()(const bitset<_Size>& __bs) const _NOEXCEPT
1102 operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x);
1106 operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x);