From Jason Turner

[ostream.inserters]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpufh30u8a/{from.md → to.md} +8 -10
tmp/tmpufh30u8a/{from.md → to.md} RENAMED
@@ -1,44 +1,42 @@
1
  ##### `basic_ostream::operator<<` <a id="ostream.inserters">[[ostream.inserters]]</a>
2
 
3
  ``` cpp
4
- basic_ostream<charT, traits>&
5
- operator<<(basic_ostream<charT, traits>& (*pf)(basic_ostream<charT, traits>&));
6
  ```
7
 
8
  *Effects:* None. Does not behave as a formatted output function (as
9
  described in  [[ostream.formatted.reqmts]]).
10
 
11
- *Returns:* `pf(*this)`.[^34]
12
 
13
  ``` cpp
14
- basic_ostream<charT, traits>&
15
- operator<<(basic_ios<charT, traits>& (*pf)(basic_ios<charT, traits>&));
16
  ```
17
 
18
  *Effects:* Calls `pf(*this)`. This inserter does not behave as a
19
  formatted output function (as described
20
  in  [[ostream.formatted.reqmts]]).
21
 
22
- *Returns:* `*this`.[^35]
23
 
24
  ``` cpp
25
- basic_ostream<charT, traits>& operator<<(ios_base& (*pf)(ios_base&));
26
  ```
27
 
28
  *Effects:* Calls `pf(*this)`. This inserter does not behave as a
29
  formatted output function (as described
30
  in  [[ostream.formatted.reqmts]]).
31
 
32
  *Returns:* `*this`.
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:
@@ -55,11 +53,11 @@ 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);
61
  ```
62
 
63
  *Effects:* Equivalent to:
64
 
65
  ``` cpp
 
1
  ##### `basic_ostream::operator<<` <a id="ostream.inserters">[[ostream.inserters]]</a>
2
 
3
  ``` cpp
4
+ basic_ostream& operator<<(basic_ostream& (*pf)(basic_ostream&));
 
5
  ```
6
 
7
  *Effects:* None. Does not behave as a formatted output function (as
8
  described in  [[ostream.formatted.reqmts]]).
9
 
10
+ *Returns:* `pf(*this)`.[^32]
11
 
12
  ``` cpp
13
+ basic_ostream& operator<<(basic_ios<charT, traits>& (*pf)(basic_ios<charT, traits>&));
 
14
  ```
15
 
16
  *Effects:* Calls `pf(*this)`. This inserter does not behave as a
17
  formatted output function (as described
18
  in  [[ostream.formatted.reqmts]]).
19
 
20
+ *Returns:* `*this`.[^33]
21
 
22
  ``` cpp
23
+ basic_ostream& operator<<(ios_base& (*pf)(ios_base&));
24
  ```
25
 
26
  *Effects:* Calls `pf(*this)`. This inserter does not behave as a
27
  formatted output function (as described
28
  in  [[ostream.formatted.reqmts]]).
29
 
30
  *Returns:* `*this`.
31
 
32
  ``` cpp
33
+ basic_ostream& operator<<(basic_streambuf<charT, traits>* sb);
34
  ```
35
 
36
  *Effects:* Behaves as an unformatted output
37
+ function [[ostream.unformatted]]. After the `sentry` object is
38
  constructed, if `sb` is null calls `setstate(badbit)` (which may throw
39
  `ios_base::failure`).
40
 
41
  Gets characters from `sb` and inserts them in `*this`. Characters are
42
  read from `sb` and inserted until any of the following occurs:
 
53
  exception is rethrown.
54
 
55
  *Returns:* `*this`.
56
 
57
  ``` cpp
58
+ basic_ostream& operator<<(nullptr_t);
59
  ```
60
 
61
  *Effects:* Equivalent to:
62
 
63
  ``` cpp