Ptr

template<class obj_T, class ptr_T, void deleter_T>
class Ptr

Special unique pointer for instances that must be destroyed.

Template Parameters:
  • obj_T – Wrapper class

  • ptr_T – Pointer type from the C-API

  • deleter_T – Function that must be used for destroying objects

Public Functions

Ptr() = delete
Ptr(Ptr const&) = delete
inline Ptr(Ptr &&rhs)
inline explicit Ptr(ptr_T *obj)
inline ~Ptr()
Ptr &operator=(Ptr&) = delete
inline void operator=(Ptr &&rhs)
inline operator obj_T*()
inline operator obj_T*() const
inline obj_T *operator->()
inline obj_T const *operator->() const