From Jason Turner

[istream.formatted]

Diff to HTML by rtfpessoa

tmp/tmp8i6znlq7/{from.md → to.md} RENAMED
@@ -4,11 +4,11 @@
4
 
5
  Each formatted input function begins execution by constructing an object
6
  of class `sentry` with the `noskipws` (second) argument `false`. If the
7
  `sentry` object returns `true`, when converted to a value of type
8
  `bool`, the function endeavors to obtain the requested input. If an
9
- exception is thrown during input then `ios::badbit` is turned on[^18] in
10
  `*this`’s error state. If `(exceptions()&badbit) != 0` then the
11
  exception is rethrown. In any case, the formatted input function
12
  destroys the `sentry` object. If no exception has been thrown, it
13
  returns `*this`.
14
 
@@ -97,17 +97,17 @@ setstate(err);
97
 
98
  ##### `basic_istream::operator>>` <a id="istream::extractors">[[istream::extractors]]</a>
99
 
100
  ``` cpp
101
  basic_istream<charT,traits>& operator>>
102
- (basic_istream<charT,traits>& (*pf)(basic_istream<charT,traits>&))
103
  ```
104
 
105
  *Effects:* None. This extractor does not behave as a formatted input
106
  function (as described in  [[istream.formatted.reqmts]].)
107
 
108
- *Returns:* `pf(*this)`.[^19]
109
 
110
  ``` cpp
111
  basic_istream<charT,traits>& operator>>
112
  (basic_ios<charT,traits>& (*pf)(basic_ios<charT,traits>&));
113
  ```
@@ -121,11 +121,11 @@ in  [[istream.formatted.reqmts]]).
121
  ``` cpp
122
  basic_istream<charT,traits>& operator>>
123
  (ios_base& (*pf)(ios_base&));
124
  ```
125
 
126
- *Effects:* Calls `pf(*this)`.[^20] This extractor does not behave as a
127
  formatted input function (as described
128
  in  [[istream.formatted.reqmts]]).
129
 
130
  *Returns:* `*this`.
131
 
 
4
 
5
  Each formatted input function begins execution by constructing an object
6
  of class `sentry` with the `noskipws` (second) argument `false`. If the
7
  `sentry` object returns `true`, when converted to a value of type
8
  `bool`, the function endeavors to obtain the requested input. If an
9
+ exception is thrown during input then `ios::badbit` is turned on[^19] in
10
  `*this`’s error state. If `(exceptions()&badbit) != 0` then the
11
  exception is rethrown. In any case, the formatted input function
12
  destroys the `sentry` object. If no exception has been thrown, it
13
  returns `*this`.
14
 
 
97
 
98
  ##### `basic_istream::operator>>` <a id="istream::extractors">[[istream::extractors]]</a>
99
 
100
  ``` cpp
101
  basic_istream<charT,traits>& operator>>
102
+ (basic_istream<charT,traits>& (*pf)(basic_istream<charT,traits>&));
103
  ```
104
 
105
  *Effects:* None. This extractor does not behave as a formatted input
106
  function (as described in  [[istream.formatted.reqmts]].)
107
 
108
+ *Returns:* `pf(*this)`.[^20]
109
 
110
  ``` cpp
111
  basic_istream<charT,traits>& operator>>
112
  (basic_ios<charT,traits>& (*pf)(basic_ios<charT,traits>&));
113
  ```
 
121
  ``` cpp
122
  basic_istream<charT,traits>& operator>>
123
  (ios_base& (*pf)(ios_base&));
124
  ```
125
 
126
+ *Effects:* Calls `pf(*this)`.[^21] This extractor does not behave as a
127
  formatted input function (as described
128
  in  [[istream.formatted.reqmts]]).
129
 
130
  *Returns:* `*this`.
131