From Jason Turner

[ofstream.swap]

Diff to HTML by rtfpessoa

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