std::basic_iostream<CharT,Traits>::operator=
From cppreference.com
 
 
 < cpp | io | basic iostream 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Input/output library 
 
 
 
 
 
 
 
 
 
 
 
 
 Print functions (C++23)
 Buffers
(C++23)
(C++98/26*)
(C++20)
 Streams
 Abstractions
 File I/O
 String I/O
 Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
 Synchronized Output
(C++20)
 Types
 Error category interface
(C++11)
(C++11)
std::basic_iostream 
 
 Member functions
 Protected member functions
basic_iostream::operator=
basic_iostream& operator=( const basic_iostream& other ) = delete;
 (1) 
 
protected:
basic_iostream& operator=( basic_iostream&& other );
 (2) 
 (since C++11) 
basic_iostream& operator=( basic_iostream&& other );
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.
[edit] Parameters
 other
 -
 another stream to assign state of
[edit] Return value
*this