|
#include <smart_ptr.hpp>
void example_allocator_policy_usage() { smart_ptr<ShapeWithNoCloneLogic, ownership_default_policy, allocator_default_policy> vShape1(new CircleWithNoCloneLogic); smart_ptr<ShapeWithNoCloneLogic, ownership_default_policy, allocator_default_policy> vShape2(vShape1); std::cout << vShape2->GetTypeName() << std::cout; }
Definition at line 123 of file smart_ptr.hpp.
Static Public Member Functions | |
template<typename T_obj> | |
static T_obj * | allocate (const T_obj *ptr) |
allocate clones the input argument by calling the type copy constructor. | |
template<typename T_obj> | |
static void | deallocate (T_obj *ptr) |
|
allocate clones the input argument by calling the type copy constructor.
Definition at line 134 of file smart_ptr.hpp. |
|
Definition at line 142 of file smart_ptr.hpp. |