std::basic_...tive_handle(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… NAME πŸ’…

okay so bestie, this is the std::basic_...tive_handle(3) page from the C++ Standard Libary, and the NAME is literally std::basic_ofstream::native_handle - std::basic_ofstream::native_handle β€” yes, it’s the same name twice, twin energy, we respect it. periodt. πŸ’–

✨ Synopsis ✨

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

This one returns the implementation defined underlying handle associated with basic_filebuf. Lowkey iconic, highkey low-level. πŸ¦‹

🚨 Behavior check: the behavior is undefined if is_open() is false. Like, do not call this on a closed stream β€” that is not a vibe, that is chaos. 😭

🫢 Return value 🫢

It gives you exactly this:

rdbuf()->native_handle()

🌸 Notes 🌸

Feature-test macro tea β˜• β€” every detail, no skips:

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

πŸŽ€ Example πŸŽ€

  • This section is incomplete.
  • Reason: example.

πŸ¦‹ Category πŸ¦‹

  • * Todo with reason

mwah πŸ’‹ that’s the whole page, bestie! from http://cppreference.com, version 2024.06.10, page std::basic_...tive_handle(3). πŸ§šπŸ’–

πŸ“¦ where this page comes from