QScopedPointerDeleter< T > Struct Template Reference

QScopedPointerDeleter< T > Struct Template Reference

#include <qscopedpointer.h>

Class Description

template<typename T>
struct QScopedPointerDeleter< T >

Definition at line 52 of file qscopedpointer.h.

Static Public Member Functions

static void cleanup (T *pointer)
 

Member Function Documentation

static void 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  }
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
GLsizei const GLvoid * pointer
Definition: GLee.h:1361

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