pvAccessCPP  7.1.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
epics::pvAccess::Destroyable::cleaner Class Reference

for use with shared_ptr<> when wrapping More...

#include <utils/pv/destroyable.h>

Public Member Functions

 cleaner (const Destroyable::shared_pointer &ptr)
 
void operator() (Destroyable *)
 

Detailed Description

for use with shared_ptr<> when wrapping

shared_ptr<foo> inner(new foo),
outer(inner.get, Destroyable::cleaner(inner));
Warning
Do not use this trick in combination with enable_shared_from_this as it is undefined whether the hidden weak_ptr will be the original or wrapped reference.

Definition at line 47 of file destroyable.h.


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