Namespaces
Variants

std::basic_filebuf<CharT,Traits>:: basic_filebuf

From cppreference.net
basic_filebuf ( ) ;
(1)
basic_filebuf ( const std:: basic_filebuf & rhs ) = delete ;
(2) (C++11 이후)
basic_filebuf ( std:: basic_filebuf && rhs ) ;
(3) (C++11 이후)

새로운 std::basic_filebuf 객체를 생성합니다.

1) std::basic_filebuf 객체를 생성하며, 기본 클래스를 std::basic_streambuf 의 기본 생성자를 호출하여 초기화합니다. 생성된 basic_filebuf 는 파일과 연결되지 않으며, is_open() false 를 반환합니다.
2) 복사 생성자가 삭제됨; std::basic_filebuf CopyConstructible 을 만족하지 않음.
3) 다른 std::basic_filebuf 객체 rhs 의 모든 내용(버퍼, 연결된 파일, 로케일, 열기 모드, is_open 변수 및 기타 모든 상태 포함)을 이동하여 std::basic_filebuf 객체를 이동 생성합니다. 이동 후 rhs 는 파일과 연결되지 않으며 rhs. is_open ( ) == false 입니다. rhs 의 기본 클래스 std::basic_streambuf * this 의 기본 클래스 멤버 포인터는 (널이 아닌 경우) 서로 다른 버퍼를 가리키도록 보장됩니다.

목차

매개변수

rhs - another basic_filebuf

참고 사항

일반적으로 std::basic_fstream 의 생성자에 의해 호출됩니다.

예제

참고 항목

(C++11)
basic_filebuf 객체를 할당함
(public member function)
[virtual]
basic_filebuf 객체를 소멸시키고 파일이 열려 있으면 닫음
(virtual public member function)