tmp/tmpwhhz9gk8/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
##### Assignment <a id="streambuf.assign">[[streambuf.assign]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
basic_streambuf& operator=(const basic_streambuf& rhs);
|
| 7 |
```
|
| 8 |
|
| 9 |
-
*
|
| 10 |
-
|
| 11 |
-
*Postconditions:*
|
| 12 |
|
| 13 |
- `eback() == rhs.eback()`
|
| 14 |
- `gptr() == rhs.gptr()`
|
| 15 |
- `egptr() == rhs.egptr()`
|
| 16 |
- `pbase() == rhs.pbase()`
|
|
@@ -54,12 +52,12 @@ void gbump(int n);
|
|
| 54 |
|
| 55 |
``` cpp
|
| 56 |
void setg(char_type* gbeg, char_type* gnext, char_type* gend);
|
| 57 |
```
|
| 58 |
|
| 59 |
-
*
|
| 60 |
-
|
| 61 |
|
| 62 |
##### Put area access <a id="streambuf.put.area">[[streambuf.put.area]]</a>
|
| 63 |
|
| 64 |
``` cpp
|
| 65 |
char_type* pbase() const;
|
|
@@ -87,8 +85,8 @@ void pbump(int n);
|
|
| 87 |
|
| 88 |
``` cpp
|
| 89 |
void setp(char_type* pbeg, char_type* pend);
|
| 90 |
```
|
| 91 |
|
| 92 |
-
*
|
| 93 |
-
|
| 94 |
|
|
|
|
| 1 |
+
#### Protected member functions <a id="streambuf.protected">[[streambuf.protected]]</a>
|
| 2 |
|
| 3 |
##### Assignment <a id="streambuf.assign">[[streambuf.assign]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
basic_streambuf& operator=(const basic_streambuf& rhs);
|
| 7 |
```
|
| 8 |
|
| 9 |
+
*Ensures:*
|
|
|
|
|
|
|
| 10 |
|
| 11 |
- `eback() == rhs.eback()`
|
| 12 |
- `gptr() == rhs.gptr()`
|
| 13 |
- `egptr() == rhs.egptr()`
|
| 14 |
- `pbase() == rhs.pbase()`
|
|
|
|
| 52 |
|
| 53 |
``` cpp
|
| 54 |
void setg(char_type* gbeg, char_type* gnext, char_type* gend);
|
| 55 |
```
|
| 56 |
|
| 57 |
+
*Ensures:* `gbeg == eback()`, `gnext == gptr()`, and `gend == egptr()`
|
| 58 |
+
are all `true`.
|
| 59 |
|
| 60 |
##### Put area access <a id="streambuf.put.area">[[streambuf.put.area]]</a>
|
| 61 |
|
| 62 |
``` cpp
|
| 63 |
char_type* pbase() const;
|
|
|
|
| 85 |
|
| 86 |
``` cpp
|
| 87 |
void setp(char_type* pbeg, char_type* pend);
|
| 88 |
```
|
| 89 |
|
| 90 |
+
*Ensures:* `pbeg == pbase()`, `pbeg == pptr()`, and `pend == epptr()`
|
| 91 |
+
are all `true`.
|
| 92 |
|