ORIGINAL
|
Default deletion policy for single objects. More...
#include <deleter.h>
Public Member Functions | |
void | operator() (const TYPE *ptr) const noexcept override |
Deletes a single object. | |
![]() | |
constexpr | deleterBase () noexcept=default |
Default constructor. | |
virtual | ~deleterBase ()=0 |
Pure virtual destructor. | |
Default deletion policy for single objects.
Specialization for array deletion.
TYPE | Type of resource to manage |
Invokes standard delete operator on the managed pointer. Suitable for use with non-array types allocated with new.
TYPE[] | Element type of array |
Invokes array delete[] operator for proper array cleanup. Must be used with array types allocated with new[].
|
overridevirtualnoexcept |
Deletes a single object.
ptr | Pointer to the object to delete |
Implements original::deleterBase< TYPE >.