From Jason Turner

[fstream.swap]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp39rexre5/{from.md → to.md} +17 -0
tmp/tmp39rexre5/{from.md → to.md} RENAMED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Swap <a id="fstream.swap">[[fstream.swap]]</a>
2
+
3
+ ``` cpp
4
+ void swap(basic_fstream& rhs);
5
+ ```
6
+
7
+ *Effects:* Exchanges the state of `*this` and `rhs` by calling
8
+ `basic_iostream<charT,traits>::swap(rhs)` and `sb.swap(rhs.sb)`.
9
+
10
+ ``` cpp
11
+ template<class charT, class traits>
12
+ void swap(basic_fstream<charT, traits>& x,
13
+ basic_fstream<charT, traits>& y);
14
+ ```
15
+
16
+ *Effects:* Equivalent to: `x.swap(y)`.
17
+