SharedPtr.hpp
24 Smart pointers uses a reference counting mechanism to control the life time of an object. When the last
25 SharePtr instance goes out of scope, the controlled object is deleted. In case an object is shared across
26 dll boundaries, it is essential create and delete objects within the same heap. To do so you can either
27 provide a corresponding delete function (only non-member functions are supported) or an object is derived
42 /// Put an object under the control of the smart pointer class with the corresponding deleter function pointer
43 SharedPtr(T *obj, void(*deleter)(void *)) noexcept : pimpl_(0) { shared_ptr_create(pimpl_, obj, deleter); }
64 /// put a new object under the shared pointer control (with the corresponding deleter function pointer)
