std::basic_iostream<CharT,Traits>:: operator=
From cppreference.net
<
cpp
|
io
|
basic iostream
|
basic_iostream
&
operator
=
(
const
basic_iostream
&
other
)
=
delete
;
|
(1) | |
|
protected
:
basic_iostream & operator = ( basic_iostream && other ) ; |
(2) | (C++11부터) |
다른 스트림 객체를 할당합니다.
1)
복사 할당은 허용되지 않습니다.
2)
다른 스트림 객체를 이동 대입합니다. 효과적으로
swap
(
rhs
)
를 호출합니다. 이 이동 대입 연산자는 protected로 선언되어 있습니다: 파생 스트림 클래스인
std::basic_stringstream
과
std::basic_fstream
의 이동 대입 연산자들에 의해 호출되며, 이들은 관련된 스트림 버퍼들을 올바르게 이동 대입하는 방법을 알고 있습니다.
매개변수
| other | - | 상태를 할당할 다른 스트림 |
반환값
* this
참고 항목
|
객체를 생성합니다
(public member function) |