- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Static Public Member Functions

# QScopedPointerDeleter< T > Struct Template Reference

Search for all occurrences

## Detailed Description

### template<typename T>
struct QScopedPointerDeleter< T >

Definition at line 52 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]`

Search for all occurrences

Definition at line 54 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:

- QtCore/qscopedpointer.h