tmp/tmp16yob8j9/{from.md → to.md}
RENAMED
|
@@ -1,26 +1,21 @@
|
|
| 1 |
-
####
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
basic_ostringstream& operator=(basic_ostringstream&& rhs);
|
| 5 |
-
```
|
| 6 |
-
|
| 7 |
-
*Effects:* Move assigns the base and members of `*this` from the base
|
| 8 |
-
and corresponding members of `rhs`.
|
| 9 |
-
|
| 10 |
-
*Returns:* `*this`.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
void swap(basic_ostringstream& rhs);
|
| 14 |
```
|
| 15 |
|
| 16 |
-
*Effects:*
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
``` cpp
|
| 20 |
template<class charT, class traits, class Allocator>
|
| 21 |
void swap(basic_ostringstream<charT, traits, Allocator>& x,
|
| 22 |
basic_ostringstream<charT, traits, Allocator>& y);
|
| 23 |
```
|
| 24 |
|
| 25 |
-
*Effects:*
|
| 26 |
|
|
|
|
| 1 |
+
#### Assignment and swap <a id="ostringstream.assign">[[ostringstream.assign]]</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
void swap(basic_ostringstream& rhs);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Equivalent to:
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
basic_ostream<charT, traits>::swap(rhs);
|
| 11 |
+
sb.swap(rhs.sb);
|
| 12 |
+
```
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
template<class charT, class traits, class Allocator>
|
| 16 |
void swap(basic_ostringstream<charT, traits, Allocator>& x,
|
| 17 |
basic_ostringstream<charT, traits, Allocator>& y);
|
| 18 |
```
|
| 19 |
|
| 20 |
+
*Effects:* Equivalent to: `x.swap(y)`.
|
| 21 |
|