Namespaces
Variants
Views
Actions

std::basic_iostream::operator=

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

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

<td >
basic_iostream& operator=( const basic_iostream& other ) = delete;
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
protected:
basic_iostream& operator=( basic_iostream&& other );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Assigns another stream object.

1) Copy assignment is not allowed.
2) Move assigns another stream object. Effectively calls swap(rhs). This move assignment operator is protected: it is called by the move assignment operators of the derived stream classes std::basic_stringstream and std::basic_fstream which know how to properly move-assign the associated stream buffers.

Parameters

other - another stream to assign state of

Return value

*this

See also

Template:cpp/io/basic iostream/dcl list constructor