C++ basic_ios Library - operator=



Description

It is used to move assignment.

Declaration

Following is the declaration for std::basic_istream::operator=.

copy (1)	
basic_istream& operator= (const basic_istream&) = delete;
move (2)	
basic_istream& operator= (basic_istream&& rhs);

Parameters

rhs − Another basic_istream object with the same template parameters (charT and traits).

Return Value

It returns *this.

Exceptions

No-throw guarantee − this member function never throws exceptions.

Data races

Modifies both stream objects (*this and rhs).

istream.htm
Advertisements