Go to the documentation of this file.
33 #ifndef DART_COMMON_SMARTPOINTER_HPP_
34 #define DART_COMMON_SMARTPOINTER_HPP_
41 #define DART_COMMON_DECLARE_SHARED_WEAK(X) \
43 using X##Ptr = std::shared_ptr<X>; \
44 using Const##X##Ptr = std::shared_ptr<const X>; \
45 using Weak##X##Ptr = std::weak_ptr<X>; \
46 using WeakConst##X##Ptr = std::weak_ptr<const X>;
53 #define DART_COMMON_MAKE_SHARED_WEAK(X) DART_COMMON_DECLARE_SHARED_WEAK(X)
58 #define DART_COMMON_DECLARE_SMART_POINTERS(X) \
59 DART_COMMON_DECLARE_SHARED_WEAK(X) \
60 using Unique##X##Ptr = std::unique_ptr<X>; \
61 using UniqueConst##X##Ptr = std::unique_ptr<const X>;