命名空间
变体
操作

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

来自 cppreference.cn
< cpp‎ | io‎ | basic filebuf
 
 
 
 
native_handle_type native_handle() const noexcept;
(since C++26)

返回与 *this 关联的实现定义的底层句柄。如果 is_open()false,则行为未定义。

[edit] 返回值

实现定义的句柄。

[edit] 注释

Feature-test macro Std 特性
__cpp_lib_fstream_native_handle 202306L (C++26) native handles support

[edit] 示例