Audacity  3.0.3
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 282 of file MemoryX.h.

Member Function Documentation

◆ operator()()

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

Definition at line 283 of file MemoryX.h.

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

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