23 #ifndef __NO_DELETER_H 24 #define __NO_DELETER_H 45 return std::shared_ptr<T>(&r,
NoDeleter());
void operator()(const void *)
Do nothing.
Definition: NoDeleter.h:37
NoDeleter is a customised deleter intended for use with smart pointers.
Definition: NoDeleter.h:33
std::shared_ptr< T > reference_to_no_delete_pointer(T &r)
Helper function to construct shared pointer with NoDeleter with cleaner syntax.
Definition: NoDeleter.h:43