std::basic_ofstream::is_open
性病:基本[医]流::is[医]开着的营业的
bool is_open( | | (until C++11) |
---|---|---|
bool is_open() const; | | (since C++11) |
检查文件流是否有关联的文件。
有效呼叫rdbuf()->is_open()...
参数
%280%29
返回值
true
如果文件流有关联的文件,false
否则。
例
另见
open | opens a file and associates it with the stream (public member function) |
---|---|
close | closes the associated file (public member function) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。