From Jason Turner

[ostream.inserters]

Diff to HTML by rtfpessoa

tmp/tmpm2162qo7/{from.md → to.md} RENAMED
@@ -33,13 +33,13 @@ in  [[ostream.formatted.reqmts]]).
33
 
34
  ``` cpp
35
  basic_ostream<charT, traits>& operator<<(basic_streambuf<charT, traits>* sb);
36
  ```
37
 
38
- *Effects:* Behaves as an unformatted output function
39
- ([[ostream.unformatted]]). After the sentry object is constructed, if
40
- `sb` is null calls `setstate(badbit)` (which may throw
41
  `ios_base::failure`).
42
 
43
  Gets characters from `sb` and inserts them in `*this`. Characters are
44
  read from `sb` and inserted until any of the following occurs:
45
 
@@ -47,14 +47,14 @@ read from `sb` and inserted until any of the following occurs:
47
  - inserting in the output sequence fails (in which case the character to
48
  be inserted is not extracted);
49
  - an exception occurs while getting a character from `sb`.
50
 
51
  If the function inserts no characters, it calls `setstate(failbit)`
52
- (which may throw `ios_base::failure` ([[iostate.flags]])). If an
53
- exception was thrown while extracting a character, the function sets
54
- `failbit` in error state, and if `failbit` is on in `exceptions()` the
55
- caught exception is rethrown.
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
  basic_ostream<charT, traits>& operator<<(nullptr_t);
@@ -64,7 +64,7 @@ basic_ostream<charT, traits>& operator<<(nullptr_t);
64
 
65
  ``` cpp
66
  return *this << s;
67
  ```
68
 
69
- where `s` is an *implementation-defined* NTCTS ([[defns.ntcts]]).
70
 
 
33
 
34
  ``` cpp
35
  basic_ostream<charT, traits>& operator<<(basic_streambuf<charT, traits>* sb);
36
  ```
37
 
38
+ *Effects:* Behaves as an unformatted output
39
+ function [[ostream.unformatted]]. After the sentry object is
40
+ constructed, if `sb` is null calls `setstate(badbit)` (which may throw
41
  `ios_base::failure`).
42
 
43
  Gets characters from `sb` and inserts them in `*this`. Characters are
44
  read from `sb` and inserted until any of the following occurs:
45
 
 
47
  - inserting in the output sequence fails (in which case the character to
48
  be inserted is not extracted);
49
  - an exception occurs while getting a character from `sb`.
50
 
51
  If the function inserts no characters, it calls `setstate(failbit)`
52
+ (which may throw `ios_base::failure` [[iostate.flags]]). If an exception
53
+ was thrown while extracting a character, the function sets `failbit` in
54
+ the error state, and if `failbit` is set in `exceptions()` the caught
55
+ exception is rethrown.
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
  basic_ostream<charT, traits>& operator<<(nullptr_t);
 
64
 
65
  ``` cpp
66
  return *this << s;
67
  ```
68
 
69
+ where `s` is an *implementation-defined* NTCTS [[defns.ntcts]].
70