11 #if __cplusplus >= 201103L 17 template <
class t_Value>
21 typedef std::shared_ptr<t_Value> Pointer;
22 typedef t_Value Value;
26 static void allocate(Pointer &ptr)
28 ptr = std::make_shared<t_Value>();
31 static void reset(Pointer &ptr)
36 static bool isNull(
const Pointer &ptr)
43 template <
class t_Value>
47 typedef std::unique_ptr<t_Value> Pointer;
48 typedef t_Value Value;
52 static void allocate(Pointer &ptr)
54 ptr.reset(
new t_Value);
57 static void reset(Pointer &ptr)
62 static bool isNull(
const Pointer &ptr)
69 # define ARILES_POINTER_TYPE std::shared_ptr 73 # define ARILES_POINTER_TYPE std::unique_ptr class ARILES_VISIBILITY_ATTRIBUTE PointerHandler
#define ARILES_VISIBILITY_ATTRIBUTE