13 #include "../internal/helpers.h"
18 template <
class t_Value>
29 ptr = std::make_shared<t_Value>();
39 return (
nullptr == ptr);
44 template <
class t_Value>
55 ptr.reset(
new t_Value);
65 return (
nullptr == ptr);
70 #define ARILES2_POINTER_TYPE std::shared_ptr
74 #define ARILES2_POINTER_TYPE std::unique_ptr
std::shared_ptr< t_Value > Pointer
static void reset(Pointer &ptr)
static void allocate(Pointer &ptr)
static bool isNull(const Pointer &ptr)
std::unique_ptr< t_Value > Pointer
static void allocate(Pointer &ptr)
static bool isNull(const Pointer &ptr)
static void reset(Pointer &ptr)