Lines Matching refs:bitset

1 // Debugging bitset implementation -*- C++ -*-
31 /** @file debug/bitset
38 #include <bitset>
47 class bitset
48 : public _GLIBCXX_STD::bitset<_Nb>,
51 typedef _GLIBCXX_STD::bitset<_Nb> _Base;
61 friend class bitset;
64 reference(const _Base_ref& __base, bitset* __seq)
125 bitset() : _Base() { }
127 bitset(unsigned long __val) : _Base(__val) { }
131 bitset(const std::basic_string<_CharT,_Traits,_Allocator>& __str,
138 bitset(const _Base& __x) : _Base(__x), _Safe_base() { }
140 // 23.3.5.2 bitset operations:
141 bitset<_Nb>&
142 operator&=(const bitset<_Nb>& __rhs)
148 bitset<_Nb>&
149 operator|=(const bitset<_Nb>& __rhs)
155 bitset<_Nb>&
156 operator^=(const bitset<_Nb>& __rhs)
162 bitset<_Nb>&
169 bitset<_Nb>&
176 bitset<_Nb>&
184 // 186. bitset::set() second parameter should be bool
185 bitset<_Nb>&
192 bitset<_Nb>&
199 bitset<_Nb>&
206 bitset<_Nb> operator~() const { return bitset(~_M_base()); }
208 bitset<_Nb>&
215 bitset<_Nb>&
249 // 434. bitset::to_string() hard to use.
274 operator==(const bitset<_Nb>& __rhs) const
278 operator!=(const bitset<_Nb>& __rhs) const
285 bitset<_Nb>
287 { return bitset<_Nb>(_M_base() << __pos); }
289 bitset<_Nb>
291 { return bitset<_Nb>(_M_base() >> __pos); }
301 bitset<_Nb>
302 operator&(const bitset<_Nb>& __x, const bitset<_Nb>& __y)
303 { return bitset<_Nb>(__x) &= __y; }
306 bitset<_Nb>
307 operator|(const bitset<_Nb>& __x, const bitset<_Nb>& __y)
308 { return bitset<_Nb>(__x) |= __y; }
311 bitset<_Nb>
312 operator^(const bitset<_Nb>& __x, const bitset<_Nb>& __y)
313 { return bitset<_Nb>(__x) ^= __y; }
317 operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
323 const bitset<_Nb>& __x)