对码当歌,猿生几何?

std::basic_streambuf::operator=

From cppreference.com
< cpp‎ | io‎ | basic streambuf
 
 
 
 
basic_streambuf& operator=( const basic_streambuf& other );
(since C++11)

Assigns the data members of other to *this.

Parameters

other - stream buffer to assign

Return value

*this

Exceptions

(none)

Example