std::basic_filebuf<CharT,Traits>:: native_handle
From cppreference.net
<
cpp
|
io
|
basic filebuf
C++
Input/output library
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::basic_filebuf
| Public member functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
basic_filebuf::native_handle
(C++26)
|
||||
| Protected member functions | ||||
| Non-member functions | ||||
|
(C++11)
|
|
native_handle_type native_handle
(
)
const
noexcept
;
|
(自 C++26 起) | |
返回与 * this 关联的实现定义底层句柄。若 is_open ( ) 为 false 则行为未定义。
返回值
实现定义句柄。
注释
| 功能测试 宏 | 值 | 标准 | 功能特性 |
|---|---|---|---|
__cpp_lib_fstream_native_handle
|
202306L
|
(C++26) | 原生句柄支持 |
示例
|
本节内容不完整
原因:需要示例 |