std::basic_ifstream<CharT,Traits>::close - cppreference.com
Namespaces
Variants

std::basic_ifstream<CharT,Traits>::close

From cppreference.com
 
 
 
 
void close();

Closes the associated file.

Effectively calls rdbuf()->close(). If an error occurs during operation, setstate(failbit) is called.

Parameters

(none)

Return value

(none)

Notes

This function is called by the destructor of basic_ifstream when the stream object goes out of scope and is not usually invoked directly.

Example

See also