kblib 0.2.3
General utilities library for modern C++
kblib::default_destroy< Obj > Struct Template Reference

Uses the class's virtual destructor. More...

#include <kblib/poly_obj.h>

Public Member Functions

 default_destroy () noexcept=default
 
template<typename T >
 default_destroy (T *) noexcept
 
auto destroy (Obj *obj) -> void
 

Detailed Description

template<typename Obj>
struct kblib::default_destroy< Obj >

Uses the class's virtual destructor.

Definition at line 350 of file poly_obj.h.

Constructor & Destructor Documentation

◆ default_destroy() [1/2]

template<typename Obj >
kblib::default_destroy< Obj >::default_destroy ( )
defaultnoexcept

◆ default_destroy() [2/2]

template<typename Obj >
template<typename T >
kblib::default_destroy< Obj >::default_destroy ( T *  )
inlineexplicitnoexcept

Definition at line 353 of file poly_obj.h.

Member Function Documentation

◆ destroy()

template<typename Obj >
auto kblib::default_destroy< Obj >::destroy ( Obj *  obj) -> void
inline

Definition at line 355 of file poly_obj.h.


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