Audacity 3.2.0
Public Member Functions | List of all members
Destroyer< T > Struct Template Reference

A deleter class to supply the second template parameter of unique_ptr for classes like wxWindow that should be sent a message called Destroy rather than be deleted directly. More...

#include <MemoryX.h>

Public Member Functions

void operator() (T *p) const
 

Detailed Description

template<typename T>
struct Destroyer< T >

A deleter class to supply the second template parameter of unique_ptr for classes like wxWindow that should be sent a message called Destroy rather than be deleted directly.

Definition at line 156 of file MemoryX.h.

Member Function Documentation

◆ operator()()

template<typename T >
void Destroyer< T >::operator() ( T *  p) const
inline

Definition at line 157 of file MemoryX.h.

157{ if (p) p->Destroy(); }

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