std::basic_fstream<CharT,Traits>::native_handle
From cppreference.com
< cpp | io | basic fstream
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Input/output library
Print functions (C++23)
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_fstream
Member functions
(C++11)
(C++11)
basic_fstream::native_handle
(C++26)
File operations
Non-member functions
(C++11)
native_handle_type native_handle() const noexcept;
(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 macro | Value | Std | Feature |
---|---|---|---|
__cpp_lib_fstream_native_handle |
202306L |
(C++26) | native handles support |
[edit] Example
This section is incomplete
Reason: example
Reason: example