A deleter for boost::shared_ptr which enables to use a pointer in a shared_ptr, which is not a shared_ptr itself and owned by another object.
More...
template<class ParentType>
class rsc::misc::ParentSharedPtrDeleter< ParentType >
A deleter for boost::shared_ptr which enables to use a pointer in a shared_ptr, which is not a shared_ptr itself and owned by another object.
The only requirement is that this object in turn is maintained by a shared_ptr. This deleter effectively keeps up the reference count of the parent object by storing an instance of a shared_ptr to the parent until the child ptr is deleted.
- Author
- jwienke
- Template Parameters
-
ParentType | type of the parent which is owned by a shared_ptr |
Definition at line 73 of file langutils.h.