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

#include <qscopedpointer.h>

Static Public Functions

static void cleanup (T *pointer)
 

Detailed Description

template<typename T>
struct QScopedPointerArrayDeleter< T >

Definition at line 67 of file qscopedpointer.h.

Functions

◆ cleanup()

template<typename T >
static void QScopedPointerArrayDeleter< T >::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  }

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