Namespaces
Variants
Views
Actions

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 cpp
+
{{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 >

void swap(std::basic_filebuf<CharT, Traits>& lhs,

          std::basic_filebuf<CharT, Traits>& rhs);
</td>

<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

See also

Template:cpp/io/basic filebuf/dcl list swapTemplate:cpp/algorithm/dcl list swap