tmp/tmpfs34v6wm/{from.md → to.md}
RENAMED
|
@@ -19,62 +19,59 @@ namespace std {
|
|
| 19 |
// [iostream.dest], destructor
|
| 20 |
virtual ~basic_iostream();
|
| 21 |
|
| 22 |
protected:
|
| 23 |
// [iostream.cons], constructor
|
| 24 |
-
basic_iostream(const basic_iostream&
|
| 25 |
basic_iostream(basic_iostream&& rhs);
|
| 26 |
|
| 27 |
// [iostream.assign], assign and swap
|
| 28 |
-
basic_iostream& operator=(const basic_iostream&
|
| 29 |
basic_iostream& operator=(basic_iostream&& rhs);
|
| 30 |
void swap(basic_iostream& rhs);
|
| 31 |
};
|
| 32 |
}
|
| 33 |
```
|
| 34 |
|
| 35 |
The class template `basic_iostream` inherits a number of functions that
|
| 36 |
allow reading input and writing output to sequences controlled by a
|
| 37 |
stream buffer.
|
| 38 |
|
| 39 |
-
#####
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
explicit basic_iostream(basic_streambuf<charT, traits>* sb);
|
| 43 |
```
|
| 44 |
|
| 45 |
-
*Effects:*
|
| 46 |
-
|
| 47 |
-
`
|
| 48 |
-
`basic_ostream<charT, traits>(sb)` ([[ostream]]).
|
| 49 |
|
| 50 |
-
*
|
| 51 |
|
| 52 |
``` cpp
|
| 53 |
basic_iostream(basic_iostream&& rhs);
|
| 54 |
```
|
| 55 |
|
| 56 |
*Effects:* Move constructs from the rvalue `rhs` by constructing the
|
| 57 |
`basic_istream` base class with `move(rhs)`.
|
| 58 |
|
| 59 |
-
#####
|
| 60 |
|
| 61 |
``` cpp
|
| 62 |
virtual ~basic_iostream();
|
| 63 |
```
|
| 64 |
|
| 65 |
-
*Effects:* Destroys an object of class `basic_iostream`.
|
| 66 |
-
|
| 67 |
*Remarks:* Does not perform any operations on `rdbuf()`.
|
| 68 |
|
| 69 |
-
#####
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
basic_iostream& operator=(basic_iostream&& rhs);
|
| 73 |
```
|
| 74 |
|
| 75 |
-
*Effects:*
|
| 76 |
|
| 77 |
``` cpp
|
| 78 |
void swap(basic_iostream& rhs);
|
| 79 |
```
|
| 80 |
|
|
|
|
| 19 |
// [iostream.dest], destructor
|
| 20 |
virtual ~basic_iostream();
|
| 21 |
|
| 22 |
protected:
|
| 23 |
// [iostream.cons], constructor
|
| 24 |
+
basic_iostream(const basic_iostream&) = delete;
|
| 25 |
basic_iostream(basic_iostream&& rhs);
|
| 26 |
|
| 27 |
// [iostream.assign], assign and swap
|
| 28 |
+
basic_iostream& operator=(const basic_iostream&) = delete;
|
| 29 |
basic_iostream& operator=(basic_iostream&& rhs);
|
| 30 |
void swap(basic_iostream& rhs);
|
| 31 |
};
|
| 32 |
}
|
| 33 |
```
|
| 34 |
|
| 35 |
The class template `basic_iostream` inherits a number of functions that
|
| 36 |
allow reading input and writing output to sequences controlled by a
|
| 37 |
stream buffer.
|
| 38 |
|
| 39 |
+
##### Constructors <a id="iostream.cons">[[iostream.cons]]</a>
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
explicit basic_iostream(basic_streambuf<charT, traits>* sb);
|
| 43 |
```
|
| 44 |
|
| 45 |
+
*Effects:* Initializes the base class subobjects with
|
| 46 |
+
`basic_istream<charT, traits>(sb)` [[istream]] and
|
| 47 |
+
`basic_ostream<charT, traits>(sb)` [[ostream]].
|
|
|
|
| 48 |
|
| 49 |
+
*Ensures:* `rdbuf() == sb` and `gcount() == 0`.
|
| 50 |
|
| 51 |
``` cpp
|
| 52 |
basic_iostream(basic_iostream&& rhs);
|
| 53 |
```
|
| 54 |
|
| 55 |
*Effects:* Move constructs from the rvalue `rhs` by constructing the
|
| 56 |
`basic_istream` base class with `move(rhs)`.
|
| 57 |
|
| 58 |
+
##### Destructor <a id="iostream.dest">[[iostream.dest]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
virtual ~basic_iostream();
|
| 62 |
```
|
| 63 |
|
|
|
|
|
|
|
| 64 |
*Remarks:* Does not perform any operations on `rdbuf()`.
|
| 65 |
|
| 66 |
+
##### Assignment and swap <a id="iostream.assign">[[iostream.assign]]</a>
|
| 67 |
|
| 68 |
``` cpp
|
| 69 |
basic_iostream& operator=(basic_iostream&& rhs);
|
| 70 |
```
|
| 71 |
|
| 72 |
+
*Effects:* Equivalent to: `swap(rhs)`.
|
| 73 |
|
| 74 |
``` cpp
|
| 75 |
void swap(basic_iostream& rhs);
|
| 76 |
```
|
| 77 |
|