Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | io‎ | basic fstream
 
 
 
 
native_handle_type native_handle()constnoexcept;
(since C++26)

Returns the implementation defined underlying handle associated with basic_filebuf. The behavior is undefined if is_open() is false.

[edit]Return value

rdbuf()->native_handle()

[edit]Notes

Feature-test macroValueStdFeature
__cpp_lib_fstream_native_handle202306L(C++26)native handles support

[edit]Example

close