首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::basic_filebuf::basic_filebuf

basic_filebuf();

(1)

?

basic_filebuf( const std::basic_filebuf& rhs ) = delete;

(2)

(since C++11)

basic_filebuf( std::basic_filebuf&& rhs );

(3)

(since C++11)

新建std::basic_filebuf对象。

1%29构造一个std::basic_filebuf对象,通过调用std::basic_streambuf.被创造的basic_filebuf不与文件关联,并且is_open()回报false...

2%29复制构造函数被删除;std::basic_filebuf不是CopyConstructible

3%29移动-构造一个std::basic_filebuf通过将所有内容从另一个内容移出来实现。std::basic_filebuf对象rhs,包括缓冲区、关联文件、区域设置、打开模式、[医]打开变量和所有其他状态。搬家后,rhs不与文件关联,并且rhs.is_open()==false基类的成员指针std::basic_streambufrhs的基类*this除非NULL%29,否则保证指向不同的缓冲区%28。

参数

rhs

-

another basic_filebuf

注记

的构造函数通常调用std::basic_fstream...

另见

operator= (C++11)

assigns a basic_filebuf object (public member function)

(destructor) virtual

destructs a basic_filebuf object and closes the file if it is open (virtual public member function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com