Difference between revisions of "cpp/io/basic fstream/native handle"
From cppreference.com
< cpp | io | basic fstream
(added C++26 p1759r6) |
m (→Notes: +FTM) |
||
Line 1: | Line 1: | ||
{{cpp/io/basic_fstream/title |native_handle}} | {{cpp/io/basic_fstream/title |native_handle}} | ||
{{cpp/io/basic_fstream/navbar}} | {{cpp/io/basic_fstream/navbar}} | ||
− | {{ | + | {{|since=c++26| |
− | + | ||
native_handle_type native_handle() const noexcept; | native_handle_type native_handle() const noexcept; | ||
}} | }} | ||
− | |||
− | Returns the implementation defined underlying handle associated with {{tt|basic_filebuf}}. The behavior is undefined if {{c|is_open()}} is false. | + | Returns the implementation defined underlying handle associated with {{tt|basic_filebuf}}. The behavior is undefined if {{c|is_open()}} is false. |
===Return value=== | ===Return value=== | ||
{{c|rdbuf()->native_handle()}} | {{c|rdbuf()->native_handle()}} | ||
+ | |||
+ | |||
+ | |||
===Example=== | ===Example=== | ||
{{todo|example}} | {{todo|example}} | ||
+ | |||
+ |