Static Public Member Functions

QScopedPointerArrayDeleter< T > Struct Template Reference

Search for all occurrences

Detailed Description

template<typename T>
struct QScopedPointerArrayDeleter< T >

Definition at line 67 of file qscopedpointer.h.

#include <qscopedpointer.h>

List of all members.

Static Public Member Functions

static void  cleanup (T *pointer)

Member Function Documentation

static void cleanup ( T *  pointer ) [inline, static]

Definition at line 69 of file qscopedpointer.h.

    {
        // Enforce a complete type.
        // If you get a compile error here, read the secion on forward declared
        // classes in the QScopedPointer documentation.
        typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
        (void) sizeof(IsIncompleteType);

        delete [] pointer;
    }

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