From Jason Turner

[ostream]

Diff to HTML by rtfpessoa

tmp/tmp8w80xc50/{from.md → to.md} RENAMED
@@ -11,13 +11,13 @@ namespace std {
11
  template<class charT, class traits = char_traits<charT>>
12
  class basic_ostream : virtual public basic_ios<charT, traits> {
13
  public:
14
  // types (inherited from basic_ios[ios])
15
  using char_type = charT;
16
- using int_type = typename traits::int_type;
17
- using pos_type = typename traits::pos_type;
18
- using off_type = typename traits::off_type;
19
  using traits_type = traits;
20
 
21
  // [ostream.cons], constructor/destructor
22
  explicit basic_ostream(basic_streambuf<char_type, traits>* sb);
23
  virtual ~basic_ostream();
@@ -189,11 +189,11 @@ virtual ~basic_ostream();
189
 
190
  ``` cpp
191
  basic_ostream& operator=(basic_ostream&& rhs);
192
  ```
193
 
194
- *Effects:* Equivalent to: `swap(rhs)`.
195
 
196
  *Returns:* `*this`.
197
 
198
  ``` cpp
199
  void swap(basic_ostream& rhs);
@@ -229,28 +229,29 @@ explicit sentry(basic_ostream& os);
229
 
230
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
231
  If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^29]
232
 
233
  If, after any preparation is completed, `os.good()` is `true`,
234
- `ok_ == true` otherwise, `ok_ == false`. During preparation, the
235
  constructor may call `setstate(failbit)` (which may throw
236
  `ios_base::failure` [[iostate.flags]]).[^30]
237
 
238
  ``` cpp
239
  ~sentry();
240
  ```
241
 
242
  If
243
  `(os.flags() & ios_base::unitbuf) && !uncaught_exceptions() && os.good()`
244
- is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1,
245
- sets `badbit` in `os.rdstate()` without propagating an exception.
 
246
 
247
  ``` cpp
248
  explicit operator bool() const;
249
  ```
250
 
251
- *Effects:* Returns `ok_`.
252
 
253
  ##### Seek members <a id="ostream.seeks">[[ostream.seeks]]</a>
254
 
255
  Each seek member function begins execution by constructing an object of
256
  class `sentry`. It returns by destroying the `sentry` object.
 
11
  template<class charT, class traits = char_traits<charT>>
12
  class basic_ostream : virtual public basic_ios<charT, traits> {
13
  public:
14
  // types (inherited from basic_ios[ios])
15
  using char_type = charT;
16
+ using int_type = traits::int_type;
17
+ using pos_type = traits::pos_type;
18
+ using off_type = traits::off_type;
19
  using traits_type = traits;
20
 
21
  // [ostream.cons], constructor/destructor
22
  explicit basic_ostream(basic_streambuf<char_type, traits>* sb);
23
  virtual ~basic_ostream();
 
189
 
190
  ``` cpp
191
  basic_ostream& operator=(basic_ostream&& rhs);
192
  ```
193
 
194
+ *Effects:* Equivalent to `swap(rhs)`.
195
 
196
  *Returns:* `*this`.
197
 
198
  ``` cpp
199
  void swap(basic_ostream& rhs);
 
229
 
230
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
231
  If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^29]
232
 
233
  If, after any preparation is completed, `os.good()` is `true`,
234
+ *`ok_`*` == true` otherwise, *`ok_`*` == false`. During preparation, the
235
  constructor may call `setstate(failbit)` (which may throw
236
  `ios_base::failure` [[iostate.flags]]).[^30]
237
 
238
  ``` cpp
239
  ~sentry();
240
  ```
241
 
242
  If
243
  `(os.flags() & ios_base::unitbuf) && !uncaught_exceptions() && os.good()`
244
+ is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1 or
245
+ exits via an exception, sets `badbit` in `os.rdstate()` without
246
+ propagating an exception.
247
 
248
  ``` cpp
249
  explicit operator bool() const;
250
  ```
251
 
252
+ *Effects:* Returns *ok\_*.
253
 
254
  ##### Seek members <a id="ostream.seeks">[[ostream.seeks]]</a>
255
 
256
  Each seek member function begins execution by constructing an object of
257
  class `sentry`. It returns by destroying the `sentry` object.