CAF 0.17.6
|
This base enables derived classes to enforce a different allocation strategy than new/delete by providing a virtual protected request_deletion()
function and non-public destructor.
More...
#include <memory_managed.hpp>
Public Member Functions | |
virtual void | request_deletion (bool decremented_rc) const noexcept |
Default implementations calls `delete this, but can be overriden in case deletion depends on some condition or the class doesn't use default new/delete. More... | |
This base enables derived classes to enforce a different allocation strategy than new/delete by providing a virtual protected request_deletion()
function and non-public destructor.
|
virtualnoexcept |
Default implementations calls `delete this, but can be overriden in case deletion depends on some condition or the class doesn't use default new/delete.
decremented_rc | Indicates whether the caller did reduce the reference of this object before calling this member function. This information is important when implementing a type with support for weak pointers. |