![]() |
Custom deleter to keep unused objects for reuse, rather than actually deleting them. More...
Public Member Functions | |
Deleter (ReuseFactory *factory) | |
Constructor. More... | |
void | operator() (T *unusedObject) const |
Deletion method, adds the object to the ReuseFactory's collection. More... | |
Private Attributes | |
ReuseFactory * | m_factory |
ReuseFactory with the collection of unused objects for reuse. More... | |
Custom deleter to keep unused objects for reuse, rather than actually deleting them.
|
inlineexplicit |
Constructor.
factory | ReuseFactory with the collection of unused object for reuse. |
|
inline |
Deletion method, adds the object to the ReuseFactory's collection.
unusedObject | Object that is no longer referenced by any shared pointers |
|
private |
ReuseFactory with the collection of unused objects for reuse.