Difference between revisions of "cpp/io/basic filebuf/swap2"
From cppreference.com
< cpp | io | basic filebuf
m (Text replace - "/sidebar" to "/navbar") |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 30: | Line 30: | ||
{{dcl list template | cpp/algorithm/dcl list swap}} | {{dcl list template | cpp/algorithm/dcl list swap}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/io/basic filebuf/swap2]] | ||
+ | [[es:cpp/io/basic filebuf/swap2]] | ||
+ | [[fr:cpp/io/basic filebuf/swap2]] | ||
+ | [[it:cpp/io/basic filebuf/swap2]] | ||
+ | [[ja:cpp/io/basic filebuf/swap2]] | ||
+ | [[pt:cpp/io/basic filebuf/swap2]] | ||
+ | [[ru:cpp/io/basic filebuf/swap2]] | ||
+ | [[zh:cpp/io/basic filebuf/swap2]] |
Revision as of 21:29, 2 November 2012
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 std::swap algorithm for std::basic_filebuf. Exchanges the state of lhs
with that of rhs
. Effectively calls lhs.swap(rhs).
Contents |
Parameters
lhs, rhs | - | std::basic_filebuf objects whose states to swap |
Return value
(none)
Example
This section is incomplete Reason: no example |