Namespaces
Variants

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

From cppreference.net
native_handle_type native_handle ( ) const noexcept ;
(自 C++26 起)

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

返回值

实现定义句柄。

注释

功能测试 标准 功能特性
__cpp_lib_fstream_native_handle 202306L (C++26) 原生句柄支持

示例