6.0.0-rc4Source

QScopedPointerDeleter Struct

template <typename T> struct QScopedPointerDeleter

The QScopedPointerDeleter struct is the default cleanup handler of QScopedPointer. More…

Header#include <QtCore/qscopedpointer.h>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Functions

voidoperator()(T *p) const

Static Public Members

voidcleanup(T *p)

Detailed Description

It deletes the object with delete.

See also QScopedPointer.

Differences from Qt

None. It has the same interface as in Qt, including the call operator.

Member Function Documentation

[static] void QScopedPointerDeleter::cleanup(T *p)

Deletes p with delete.

void QScopedPointerDeleter::operator()(T *p) const

Calls cleanup() on p.