Qt 4.8
Static Public Functions | List of all members
QScopedPointerDeleter< T > Struct Template Reference

#include <qscopedpointer.h>

Static Public Functions

static void cleanup (T *pointer)
 

Detailed Description

template<typename T>
struct QScopedPointerDeleter< T >

Definition at line 52 of file qscopedpointer.h.

Functions

◆ cleanup()

template<typename T >
static void QScopedPointerDeleter< T >::cleanup ( T *  pointer)
inlinestatic

Definition at line 54 of file qscopedpointer.h.

55  {
56  // Enforce a complete type.
57  // If you get a compile error here, read the section on forward declared
58  // classes in the QScopedPointer documentation.
59  typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
60  (void) sizeof(IsIncompleteType);
61 
62  delete pointer;
63  }

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