libstdc++
std::out_ptr_t< _Smart, _Pointer, _Args > Class Template Reference

#include <>>

Public Member Functions

 out_ptr_t (_Smart &__smart, _Args... __args)
 out_ptr_t (const out_ptr_t &)=delete
 operator _Pointer * () const noexcept
 operator void ** () const noexcept

Friends

template<typename, typename, typename...>
class inout_ptr_t

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
_SmartThe type of pointer to adapt.
_PointerThe type of pointer to convert to.
_Args...Argument types used when resetting the smart pointer.
Since
C++23

Definition at line 57 of file out_ptr.h.

Constructor & Destructor Documentation

◆ out_ptr_t()

template<typename _Smart, typename _Pointer, typename... _Args>
std::out_ptr_t< _Smart, _Pointer, _Args >::out_ptr_t ( _Smart & __smart,
_Args... __args )
inlineexplicit

Definition at line 67 of file out_ptr.h.

Member Function Documentation

◆ operator _Pointer *()

template<typename _Smart, typename _Pointer, typename... _Args>
std::out_ptr_t< _Smart, _Pointer, _Args >::operator _Pointer * ( ) const
inlinenoexcept

Definition at line 78 of file out_ptr.h.

◆ operator void **()

template<typename _Smart, typename _Pointer, typename... _Args>
std::out_ptr_t< _Smart, _Pointer, _Args >::operator void ** ( ) const
inlinenoexcept

Definition at line 81 of file out_ptr.h.

◆ inout_ptr_t

template<typename _Smart, typename _Pointer, typename... _Args>
template<typename, typename, typename...>
friend class inout_ptr_t
friend

Definition at line 288 of file out_ptr.h.


The documentation for this class was generated from the following file: