Lines Matching refs:bitset

1 // Profiling bitset implementation -*- C++ -*-
25 /** @file profile/bitset
32 #include <bitset>
38 /// Class std::bitset wrapper with performance instrumentation, none at the
41 class bitset
42 : public _GLIBCXX_STD_C::bitset<_Nb>
44 typedef _GLIBCXX_STD_C::bitset<_Nb> _Base;
49 bitset()
52 constexpr bitset() = default;
56 constexpr bitset(unsigned long long __val) noexcept
58 bitset(unsigned long __val)
64 bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __str,
74 bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __str,
82 bitset(const _Base& __x) : _Base(__x) { }
87 bitset(const _CharT* __str,
94 // 23.3.5.2 bitset operations:
95 bitset<_Nb>&
96 operator&=(const bitset<_Nb>& __rhs) _GLIBCXX_NOEXCEPT
102 bitset<_Nb>&
103 operator|=(const bitset<_Nb>& __rhs) _GLIBCXX_NOEXCEPT
109 bitset<_Nb>&
110 operator^=(const bitset<_Nb>& __rhs) _GLIBCXX_NOEXCEPT
116 bitset<_Nb>&
123 bitset<_Nb>&
130 bitset<_Nb>&
138 // 186. bitset::set() second parameter should be bool
139 bitset<_Nb>&
146 bitset<_Nb>&
153 bitset<_Nb>&
160 bitset<_Nb>
162 { return bitset(~_M_base()); }
164 bitset<_Nb>&
171 bitset<_Nb>&
179 operator==(const bitset<_Nb>& __rhs) const _GLIBCXX_NOEXCEPT
183 operator!=(const bitset<_Nb>& __rhs) const _GLIBCXX_NOEXCEPT
186 bitset<_Nb>
188 { return bitset<_Nb>(_M_base() << __pos); }
190 bitset<_Nb>
192 { return bitset<_Nb>(_M_base() >> __pos); }
204 bitset<_Nb>
205 operator&(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
206 { return bitset<_Nb>(__x) &= __y; }
209 bitset<_Nb>
210 operator|(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
211 { return bitset<_Nb>(__x) |= __y; }
214 bitset<_Nb>
215 operator^(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT
216 { return bitset<_Nb>(__x) ^= __y; }
220 operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
226 const bitset<_Nb>& __x)
232 /// std::hash specialization for bitset.
234 struct hash<__profile::bitset<_Nb>>
235 : public __hash_base<size_t, __profile::bitset<_Nb>>
238 operator()(const __profile::bitset<_Nb>& __b) const noexcept
239 { return std::hash<_GLIBCXX_STD_C::bitset<_Nb>>()(__b._M_base()); }