13 #include <boost/smart_ptr/shared_ptr.hpp> 14 #include <boost/smart_ptr/make_shared.hpp> 18 template <
class t_Value>
22 typedef boost::shared_ptr<t_Value>
Pointer;
29 ptr = boost::make_shared<t_Value>();
43 #define ARILES_POINTER_TYPE boost::shared_ptr 44 #define ARILES_POINTER_HANDLER BoostSharedPtrHandler 49 #if BOOST_VERSION >= 105800 50 # include <boost/move/unique_ptr.hpp> 51 # include <boost/move/make_unique.hpp> 55 template <
class t_Value>
59 typedef boost::movelib::unique_ptr<t_Value> Pointer;
60 typedef t_Value Value;
64 static void allocate(Pointer &ptr)
66 ptr = boost::movelib::make_unique<t_Value>();
69 static void reset(Pointer &ptr)
74 static bool isNull(
const Pointer &ptr)
81 # define ARILES_POINTER_TYPE boost::movelib::unique_ptr class ARILES_VISIBILITY_ATTRIBUTE PointerHandler
static bool isNull(const Pointer &ptr)
static void allocate(Pointer &ptr)
boost::shared_ptr< t_Value > Pointer
static void reset(Pointer &ptr)