basic_fstream::close

 voidclose();

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