QScopedPointerArrayDeleter< T > Struct Template Reference

QScopedPointerArrayDeleter< T > Struct Template Reference

#include <qscopedpointer.h>

Class Description

template<typename T>
struct QScopedPointerArrayDeleter< T >

Definition at line 67 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 69 of file qscopedpointer.h.

70  {
71  // Enforce a complete type.
72  // If you get a compile error here, read the section on forward declared
73  // classes in the QScopedPointer documentation.
74  typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
75  (void) sizeof(IsIncompleteType);
76 
77  delete [] pointer;
78  }
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: