Namespaces
Variants
Views
Actions

std::basic_ios::move

From cppreference.com
< cpp‎ | io‎ | basic ios
Revision as of 21:50, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td >
protected:
void move( basic_ios& other );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
protected:
void move( basic_ios&& other );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Replaces the current state with that of other, except for the associated rdbuf. other is in valid, but unspecified state after the call. After the call to this function, Template:rlpf returns NULL, and other.rdbuf() returns the same value as before the call.

This member function is protected: it is called by the protected move constructors of the derived stream classes std::basic_ostream and std::basic_istream, which, in turn, are called by the public move constructors of the further derived stream classes such as std::basic_ofstream, which know how to correctly move the associated streambuffer.


Parameters

other - the basic_ios object to transfer the state from

Return value

(none)

See also

Template:cpp/io/basic ios/dcl list swap