Namespaces
Variants

std::basic_ofstream<CharT,Traits>:: native_handle

From cppreference.net
native_handle_type native_handle ( ) const noexcept ;
(C++26以降)

basic_filebuf に関連付けられた実装定義の基盤となるハンドルを返します。 is_open() false の場合の動作は未定義です。

戻り値

rdbuf ( ) - > native_handle ( )

注記

機能テスト マクロ 標準 機能
__cpp_lib_fstream_native_handle 202306L (C++26) ネイティブハンドルサポート