basic_filebuf に関連付けられた、実装定義の基になるハンドルを返します。is_open() が false の場合、動作は未定義です。
basic_filebuf
is_open()
false
rdbuf()->native_handle()
__cpp_lib_fstream_native_handle
202306L