QScopedPointerArrayDeleter Struct
template <typename T> struct QScopedPointerArrayDeleter
The QScopedPointerArrayDeleter struct is the cleanup handler of QScopedArrayPointer. More…
| Header | #include <QtCore/qscopedpointer.h> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
List of all members, including inherited members
Public Functions
| void | operator()(T *p) const |
Static Public Members
| void | cleanup(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
void QScopedPointerArrayDeleter::cleanup(T *p)
Deletes the array p with delete[].
void QScopedPointerArrayDeleter::operator()(T *p) const
Calls cleanup() on p.