tmp/tmp11qr9t61/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<bitset>` synopsis <a id="bitset.syn">[[bitset.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
#include <string>
|
| 5 |
+
#include <iosfwd> // for istream ([istream.syn]), ostream ([ostream.syn]), see [iosfwd.syn]
|
| 6 |
+
|
| 7 |
+
namespace std {
|
| 8 |
+
template <size_t N> class bitset;
|
| 9 |
+
|
| 10 |
+
// [bitset.operators], bitset operators
|
| 11 |
+
template <size_t N>
|
| 12 |
+
bitset<N> operator&(const bitset<N>&, const bitset<N>&) noexcept;
|
| 13 |
+
template <size_t N>
|
| 14 |
+
bitset<N> operator|(const bitset<N>&, const bitset<N>&) noexcept;
|
| 15 |
+
template <size_t N>
|
| 16 |
+
bitset<N> operator^(const bitset<N>&, const bitset<N>&) noexcept;
|
| 17 |
+
template <class charT, class traits, size_t N>
|
| 18 |
+
basic_istream<charT, traits>&
|
| 19 |
+
operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
|
| 20 |
+
template <class charT, class traits, size_t N>
|
| 21 |
+
basic_ostream<charT, traits>&
|
| 22 |
+
operator<<(basic_ostream<charT, traits>& os, const bitset<N>& x);
|
| 23 |
+
}
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
The header `<bitset>` defines a class template and several related
|
| 27 |
+
functions for representing and manipulating fixed-size sequences of
|
| 28 |
+
bits.
|
| 29 |
+
|