tclap  1.4.0
Classes | Public Member Functions | List of all members
TCLAP::DeferDelete Class Reference

DeferDelete can be used by objects that need to allocate arbitrary other objects to live for the duration of the first object. More...

#include <DeferDelete.h>

Public Member Functions

 DeferDelete ()
 
 ~DeferDelete ()
 
template<typename T >
void operator() (T *toDelete)
 

Detailed Description

DeferDelete can be used by objects that need to allocate arbitrary other objects to live for the duration of the first object.

Any object added to DeferDelete (by calling operator()) will be deleted when the DeferDelete object is destroyed.

Definition at line 34 of file DeferDelete.h.

Constructor & Destructor Documentation

◆ DeferDelete()

TCLAP::DeferDelete::DeferDelete ( )
inline

Definition at line 56 of file DeferDelete.h.

◆ ~DeferDelete()

TCLAP::DeferDelete::~DeferDelete ( )
inline

Definition at line 57 of file DeferDelete.h.

Member Function Documentation

◆ operator()()

template<typename T >
void TCLAP::DeferDelete::operator() ( T *  toDelete)
inline

Definition at line 65 of file DeferDelete.h.


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