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 ( )

참고 사항

Feature-test 매크로 표준 기능
__cpp_lib_fstream_native_handle 202306L (C++26) 네이티브 핸들 지원

예제