6.0.0-rc4Source

QScopedPointerArrayDeleter Struct

template <typename T> struct QScopedPointerArrayDeleter

The QScopedPointerArrayDeleter struct is the cleanup handler of QScopedArrayPointer. 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 array with delete[].

See also QScopedArrayPointer.

Differences from Qt

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

Member Function Documentation

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

Deletes the array p with delete[].

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

Calls cleanup() on p.