From Jason Turner

[bitset.operators]

Diff to HTML by rtfpessoa

tmp/tmpy0rj9bdn/{from.md → to.md} RENAMED
@@ -1,21 +1,24 @@
1
  ### `bitset` operators <a id="bitset.operators">[[bitset.operators]]</a>
2
 
3
  ``` cpp
4
- bitset<N> operator&(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
 
5
  ```
6
 
7
  *Returns:* `bitset<N>(lhs) &= rhs`.
8
 
9
  ``` cpp
10
- bitset<N> operator|(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
 
11
  ```
12
 
13
  *Returns:* `bitset<N>(lhs) |= rhs`.
14
 
15
  ``` cpp
16
- bitset<N> operator^(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
 
17
  ```
18
 
19
  *Returns:* `bitset<N>(lhs) ^= rhs`.
20
 
21
  ``` cpp
@@ -35,13 +38,13 @@ the following occurs:
35
  - `N` characters have been extracted and stored;
36
  - end-of-file occurs on the input sequence;
37
  - the next input character is neither `is.widen(’0’)` nor
38
  `is.widen(’1’)` (in which case the input character is not extracted).
39
 
40
- If `N > 0` and no characters are stored in `str`, calls
41
- `is.setstate(ios_base::failbit)` (which may throw `ios_base::failure`
42
- [[iostate.flags]]).
43
 
44
  *Returns:* `is`.
45
 
46
  ``` cpp
47
  template<class charT, class traits, size_t N>
 
1
  ### `bitset` operators <a id="bitset.operators">[[bitset.operators]]</a>
2
 
3
  ``` cpp
4
+ template<size_t N>
5
+ constexpr bitset<N> operator&(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
6
  ```
7
 
8
  *Returns:* `bitset<N>(lhs) &= rhs`.
9
 
10
  ``` cpp
11
+ template<size_t N>
12
+ constexpr bitset<N> operator|(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
13
  ```
14
 
15
  *Returns:* `bitset<N>(lhs) |= rhs`.
16
 
17
  ``` cpp
18
+ template<size_t N>
19
+ constexpr bitset<N> operator^(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
20
  ```
21
 
22
  *Returns:* `bitset<N>(lhs) ^= rhs`.
23
 
24
  ``` cpp
 
38
  - `N` characters have been extracted and stored;
39
  - end-of-file occurs on the input sequence;
40
  - the next input character is neither `is.widen(’0’)` nor
41
  `is.widen(’1’)` (in which case the input character is not extracted).
42
 
43
+ If `N > 0` and no characters are stored in `str`, `ios_base::failbit` is
44
+ set in the input function’s local error state before `setstate` is
45
+ called.
46
 
47
  *Returns:* `is`.
48
 
49
  ``` cpp
50
  template<class charT, class traits, size_t N>