std::basic_...ative_handle(3)

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

πŸ’… std::basic_...ative_handle(3) πŸ’…

okay so bestie, welcome to the C++ Standard Libary manual β€” yes, that's literally the spelling on the page, and I'm preserving it, periodt. πŸ’– This entry is all about std::basic_fstream::native_handle, and the NAME line is exactly:

std::basic_fstream::native_handle - std::basic_fstream::native_handle


✨ Synopsis ✨

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

This one returns the implementation defined underlying handle associated with basic_filebuf. 🫢 But listen: the behavior is undefined if is_open() is false. 😭 That's the danger zone, bestie β€” do not play with it while it's closed.

🌸 Return value 🌸

rdbuf()->native_handle()

that's the whole vibe. πŸ’…

πŸ¦‹ Notes πŸ¦‹

the feature-test macro tea is:

  • 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 ⭐

Category: * Todo with reason


and that's the page, bestie! 🫢 this iconic little thing came from http://cppreference.com, version/date 2024.06.10, page title std::basic_...ative_handle(3). slay, bye! πŸ’œβœ¨

πŸ“¦ where this page comes from