Namespaces
Variants

std::basic_ifstream<CharT,Traits>:: operator=

From cppreference.net

basic_ifstream & operator = ( basic_ifstream && other ) ;
(C++11부터)

파일 스트림 other * this 로 이동 할당하며, 이는 std::basic_istream 베이스 클래스와 연관된 std::basic_filebuf 를 모두 효과적으로 이동 할당합니다.

other 는 연관된 파일을 갖지 않은 상태로 남게 됩니다. 기본 클래스의 이동 할당 연산자는 rdbuf 를 제외한 모든 스트림 상태 변수들을 * this other 사이에서 교환합니다.

목차

매개변수

기타 - 이동할 파일 스트림

반환값

* this

예제

참고 항목

(C++11)
두 파일 스트림을 교환
(public member function)
(C++11)
basic_filebuf 객체를 할당
( std::basic_filebuf<CharT,Traits> 의 public member function)
(C++11)
다른 basic_istream 에서 이동 할당
(protected member function)