template<typename YI_RAW_PTR>
class CYICallbackDeleter< YI_RAW_PTR >
Callback Deleter for the CYISharedPtr and CYISharedArray.
- Deprecated:
- This class has been deprecated and may be removed in a future release.
This class wraps a static/global callback, and will be called when the raw pointer needs to be deleted.
The callback must take a pointer argument that matches the one used on the CYISharedPtr, and must return void.
Example:
void MyDeleteFunction(MyData *pPtr)
{
delete pPtr;
}
And it can be used like this:
void MyFunction(MyClass &myClass)
{
}