std::basic_filebuf<CharT,Traits>::is_open (3) - Linux Manuals
std::basic_filebuf<CharT,Traits>::is_open: std::basic_filebuf<CharT,Traits>::is_open
NAME
std::basic_filebuf<CharT,Traits>::is_open - std::basic_filebuf<CharT,Traits>::is_open
Synopsis
bool is_open() const;
Returns true if the most recent call to open() succeeded and there has been no call to close() since then.
Parameters
(none)
Return value
true if the associated file is open, false otherwise.
Notes
This function is typically called by std::basic_fstream::is_open().
Example
// Run this code
Output:
See also
open (public member function)
close (public member function)