STD::OUT_PTR_T(3cxx)
πΈ 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 markedconst noexcept, so no drama, no throws, no surprises. π₯operator void ** () const noexceptβ same energy but it's giving you avoid **, alsoconst 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
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms