basic_ifstream::close

void close();

The member function calls rdbuf()-> close().