std::basic_filebuf<CharT,Traits>::native_handle - cppreference.com (original) (raw)

| native_handle_type native_handle() const noexcept; | | (since C++26) | | ----------------------------------------------------- | | ------------- |

Returns the implementation defined underlying handle associated with *this. The behavior is undefined if is_open() is false.

[edit] Return value

implementation defined handle.

[edit] Notes

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

[edit] Example