From Jason Turner

[bitset.operators]

Diff to HTML by rtfpessoa

tmp/tmpvel52k3n/{from.md → to.md} RENAMED
@@ -22,11 +22,11 @@ bitset<N> operator^(const bitset<N>& lhs, const bitset<N>& rhs) noexcept;
22
  template<class charT, class traits, size_t N>
23
  basic_istream<charT, traits>&
24
  operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
25
  ```
26
 
27
- A formatted input function ([[istream.formatted]]).
28
 
29
  *Effects:* Extracts up to `N` characters from `is`. Stores these
30
  characters in a temporary object `str` of type
31
  `basic_string<charT, traits>`, then evaluates the expression
32
  `x = bitset<N>(str)`. Characters are extracted and stored until any of
@@ -35,13 +35,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 no characters are stored in `str`, calls
41
- `is.setstate(ios_base::failbit)` (which may throw
42
- `ios_base::failure` ([[iostate.flags]])).
43
 
44
  *Returns:* `is`.
45
 
46
  ``` cpp
47
  template<class charT, class traits, size_t N>
 
22
  template<class charT, class traits, size_t N>
23
  basic_istream<charT, traits>&
24
  operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
25
  ```
26
 
27
+ A formatted input function [[istream.formatted]].
28
 
29
  *Effects:* Extracts up to `N` characters from `is`. Stores these
30
  characters in a temporary object `str` of type
31
  `basic_string<charT, traits>`, then evaluates the expression
32
  `x = bitset<N>(str)`. Characters are extracted and stored until any of
 
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>