STD::OUT_PTR_T(3cxx)

πŸ“¦ version 16.2.0, in ubuntu stonking

🌸 NAME 🌸

std::out_ptr_t< _Smart, _Pointer, _Args > β€” bestie, it's the smart pointer adaptor for functions taking an output pointer parameter. That's the whole vibe. πŸ’…

And yes, it lives in the 3cxx manual β€” that's the libstdc++ corner of manpage-land, iykyk. πŸŽ€


✨ SYNOPSIS ✨

#include <>>

🫢 Public Member Functions 🫢

  • out_ptr_t (_Smart &__smart, _Args... __args) β€” the constructor, taking your smart pointer by ref plus the _Args... it was parameterized with. it's giving "let's get you set up". ✨
  • out_ptr_t (const out_ptr_t &)=delete β€” copying? deleted. not a thing. don't even try it, it's literally gone. πŸ’€
  • operator _Pointer * () const noexcept β€” hands you back a _Pointer *, and it's marked const noexcept, so no drama, no throws, no surprises. πŸ”₯
  • operator void ** () const noexcept β€” same energy but it's giving you a void **, also const noexcept. πŸ’–

🧚 Friends 🧚

  • template<typename, typename, typename...> class inout_ptr_t β€” the one and only friend of this class. the bestie in the group chat. 🫢

πŸ‘‘ Detailed Description πŸ‘‘

template<typename _Smart, typename _Pointer, typename... _Args>
    class std::out_ptr_t< _Smart, _Pointer, _Args >

Smart pointer adaptor for functions taking an output pointer parameter.


πŸ’œ Template Parameters πŸ’œ

  • _Smart β€” the type of pointer to adapt. πŸ‘‘
  • _Pointer β€” the type of pointer to convert to. ✨
  • _Args... β€” the argument types used when resetting the smart pointer. 🌸

⭐ Since ⭐

C++23. yeah. it's new new. periodt. πŸ’…


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code.


okay that's the whole page bestie, no cap πŸ’– everything you just read was generated automatically by Doxygen for libstdc++ from the source code, straight from the source, and this whole thing is filed under the 3cxx manual with the usual <pink>libstdc++</pink> source/version tag and its date sitting pretty in the footer 🌈 mwah, go write something iconic 🫢

πŸ“¦ where this page comes from