From Jason Turner

[streambuf.virt.pback]

Diff to HTML by rtfpessoa

tmp/tmp7lue2_xd/{from.md → to.md} RENAMED
@@ -2,15 +2,10 @@
2
 
3
  ``` cpp
4
  int_type pbackfail(int_type c = traits::eof());
5
  ```
6
 
7
- *Remarks:* The public functions of `basic_streambuf` call this virtual
8
- function only when `gptr()` is null, `gptr() == eback()`, or
9
- `traits::eq(traits::to_char_type(c), gptr()[-1])` returns `false`. Other
10
- calls shall also satisfy that constraint.
11
-
12
  The *pending sequence* is defined as for `underflow()`, with the
13
  modifications that
14
 
15
  - If `traits::eq_int_type(c, traits::eof())` returns `true`, then the
16
  input sequence is backed up one character before the pending sequence
@@ -22,12 +17,17 @@ modifications that
22
  *Ensures:* On return, the constraints of `gptr()`, `eback()`, and
23
  `pptr()` are the same as for `underflow()`.
24
 
25
  *Returns:* `traits::eof()` to indicate failure. Failure may occur
26
  because the input sequence could not be backed up, or if for some other
27
- reason the pointers could not be set consistent with the constraints.
28
  `pbackfail()` is called only when put back has really failed.
29
 
30
  Returns some value other than `traits::eof()` to indicate success.
31
 
32
  *Default behavior:* Returns `traits::eof()`.
33
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  int_type pbackfail(int_type c = traits::eof());
5
  ```
6
 
 
 
 
 
 
7
  The *pending sequence* is defined as for `underflow()`, with the
8
  modifications that
9
 
10
  - If `traits::eq_int_type(c, traits::eof())` returns `true`, then the
11
  input sequence is backed up one character before the pending sequence
 
17
  *Ensures:* On return, the constraints of `gptr()`, `eback()`, and
18
  `pptr()` are the same as for `underflow()`.
19
 
20
  *Returns:* `traits::eof()` to indicate failure. Failure may occur
21
  because the input sequence could not be backed up, or if for some other
22
+ reason the pointers cannot be set consistent with the constraints.
23
  `pbackfail()` is called only when put back has really failed.
24
 
25
  Returns some value other than `traits::eof()` to indicate success.
26
 
27
  *Default behavior:* Returns `traits::eof()`.
28
 
29
+ *Remarks:* The public functions of `basic_streambuf` call this virtual
30
+ function only when `gptr()` is null, `gptr() == eback()`, or
31
+ `traits::eq(traits::to_char_type(c), gptr()[-1])` returns `false`. Other
32
+ calls shall also satisfy that constraint.
33
+