Difference between revisions of "cpp/io/basic filebuf/swap2"
From cppreference.com
< cpp | io | basic filebuf
(+) |
m (Text replace - "{{example cpp" to "{{example") |
||
Line 20: | Line 20: | ||
===Example=== | ===Example=== | ||
− | {{example | + | {{example |
| code= | | code= | ||
| output= | | output= |
Revision as of 15:52, 19 April 2012
Template:cpp/io/basic filebuf/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td >template< class CharT, class Traits >
</td>
void swap(std::basic_filebuf<CharT, Traits>& lhs,
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Overloads the Template:cpp algorithm for Template:cpp. Exchanges the state of lhs
with that of rhs
. Effectively calls Template:cpp.
Contents |
Parameters
lhs, rhs | - | Template:cpp objects whose states to swap |
Return value
(none)
Example
This section is incomplete Reason: no example |