From Jason Turner

[stringstream.assign]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpppdcfe3s/{from.md → to.md} +8 -13
tmp/tmpppdcfe3s/{from.md → to.md} RENAMED
@@ -1,26 +1,21 @@
1
- #### Assign and swap <a id="stringstream.assign">[[stringstream.assign]]</a>
2
-
3
- ``` cpp
4
- basic_stringstream& operator=(basic_stringstream&& 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_stringstream& rhs);
14
  ```
15
 
16
- *Effects:* Exchanges the state of `*this` and `rhs` by calling
17
- `basic_iostream<charT,traits>::swap(rhs)` and `sb.swap(rhs.sb)`.
 
 
 
 
18
 
19
  ``` cpp
20
  template<class charT, class traits, class Allocator>
21
  void swap(basic_stringstream<charT, traits, Allocator>& x,
22
  basic_stringstream<charT, traits, Allocator>& y);
23
  ```
24
 
25
- *Effects:* As if by `x.swap(y)`.
26
 
 
1
+ #### Assignment and swap <a id="stringstream.assign">[[stringstream.assign]]</a>
 
 
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  void swap(basic_stringstream& rhs);
5
  ```
6
 
7
+ *Effects:* Equivalent to:
8
+
9
+ ``` cpp
10
+ basic_iostream<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_stringstream<charT, traits, Allocator>& x,
17
  basic_stringstream<charT, traits, Allocator>& y);
18
  ```
19
 
20
+ *Effects:* Equivalent to: `x.swap(y)`.
21