ORIGINAL
Loading...
Searching...
No Matches
original::deleterBase< TYPE > Class Template Referenceabstract

Base class for deleters defining the deletion policy interface. More...

#include <deleter.h>

Inheritance diagram for original::deleterBase< TYPE >:
Inheritance graph
Collaboration diagram for original::deleterBase< TYPE >:
Collaboration graph

Public Member Functions

constexpr deleterBase () noexcept=default
 Default constructor.
 
virtual ~deleterBase ()=0
 Pure virtual destructor.
 
virtual void operator() (const TYPE *ptr) const noexcept=0
 Deletion operator.
 

Detailed Description

template<typename TYPE>
class original::deleterBase< TYPE >

Base class for deleters defining the deletion policy interface.

Template Parameters
TYPEType of the resource.

This class serves as the base for all specific deleters and provides a pure virtual function operator() to handle resource deletion. Since this is an abstract class, it cannot be instantiated directly.

Constructor & Destructor Documentation

◆ deleterBase()

template<typename TYPE>
original::deleterBase< TYPE >::deleterBase ( )
constexprdefaultnoexcept

Default constructor.

The constexpr specifier allows compile-time constant initialization.

◆ ~deleterBase()

template<typename TYPE>
original::deleterBase< TYPE >::~deleterBase ( )
pure virtualdefault

Pure virtual destructor.

Must be implemented by derived classes to ensure proper cleanup.

Member Function Documentation

◆ operator()()

template<typename TYPE>
virtual void original::deleterBase< TYPE >::operator() ( const TYPE * ptr) const
pure virtualnoexcept

Deletion operator.

Parameters
ptrPointer to the object to delete.

This method must be implemented by derived classes to free the resource pointed to by ptr.

Implemented in original::deleter< TYPE >, original::deleter< TYPE[]>, and original::deleter< TYPE[]>.


The documentation for this class was generated from the following file: