QScopedPointerDeleter Struct
template <typename T> struct QScopedPointerDeleter
The QScopedPointerDeleter struct is the default cleanup handler of QScopedPointer. 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 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
void QScopedPointerDeleter::cleanup(T *p)
Deletes p with delete.
void QScopedPointerDeleter::operator()(T *p) const
Calls cleanup() on p.