std::experi...esource::get(3)

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

🌸 std::experimental::unique_resource::get β€” NAME πŸ’…

okay so bestie, this page is literally about std::experimental::unique_resource::get πŸŽ€ β€” that's the whole name, both halves, no notes. it lives in the C++ Standard Libary (their spelling, not mine, iykyk 🫢) and it's a total little icon for grabbing the raw handle out of a unique_resource.


✨ Synopsis ✨

here's the whole signature, keep it exactly as-is because it's precious:

const R& get() const noexcept;  (library fundamentals TS v3)

the way this thing accesses the underlying resource handle… no cap, that's the entire job description πŸ¦‹. it's const, it's noexcept, she's lowkey perfect.


🌈 Parameters 🌈

  • (none) β€” yeah, zero parameters. she takes nothing, she needs nothing, main character energy fr fr πŸ‘‘.

πŸ’– Return value πŸ’–

  • The underlying resource handle. β€” that's it, that's the tea β˜•. you ask, she hands you the handle, no drama, no exceptions, periodt.

πŸ¦‹ Example πŸ¦‹

so this section is literally incomplete 😭:

This section is incomplete Reason: no example

not me showing up to a manpage with no example πŸ™ˆ. anyway we move. πŸ’€


⭐ See also ⭐

  • operator* β€” accesses the pointee if the resource handle is a pointer 🎯 (yes, if β€” only when it's a pointer, don't come for me).
  • operator-> β€” public member function ✨.
  • get β€” returns a pointer to the managed object 🌸 (public member function of std::unique_ptr<T,Deleter>) β€” a different get, same name, iconic behavior πŸ’….

πŸ“ Category πŸ“

  • * Todo no example β€” the to-do list is to-doing, bestie 🧚

ngl the only real caveat here is that this is a library fundamentals TS v3 thing, so check your setup before you get too excited πŸ”₯

sign-off time 🫢 β€” this little beauty comes from http://cppreference.com, dated 2024.06.10, and it's filed under std::experi...esource::get(3) (yes the title is truncated in the middle, we love an abbreviation era πŸ’œ). catch you in the next section, mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from