DART  6.7.3
SmartPointer.hpp File Reference
#include <memory>

Go to the source code of this file.

Macros

#define DART_COMMON_DECLARE_SHARED_WEAK(X)
 
#define DART_COMMON_MAKE_SHARED_WEAK(X)   DART_COMMON_DECLARE_SHARED_WEAK(X)
 
#define DART_COMMON_DECLARE_SMART_POINTERS(X)
 

Macro Definition Documentation

◆ DART_COMMON_DECLARE_SHARED_WEAK

#define DART_COMMON_DECLARE_SHARED_WEAK (   X)
Value:
class X; \
using X##Ptr = std::shared_ptr<X>; \
using Const##X##Ptr = std::shared_ptr<const X>; \
using Weak##X##Ptr = std::weak_ptr<X>; \
using WeakConst##X##Ptr = std::weak_ptr<const X>;

◆ DART_COMMON_DECLARE_SMART_POINTERS

#define DART_COMMON_DECLARE_SMART_POINTERS (   X)
Value:
using Unique##X##Ptr = std::unique_ptr<X>; \
using UniqueConst##X##Ptr = std::unique_ptr<const X>;
#define DART_COMMON_DECLARE_SHARED_WEAK(X)
Definition: SmartPointer.hpp:41

◆ DART_COMMON_MAKE_SHARED_WEAK

#define DART_COMMON_MAKE_SHARED_WEAK (   X)    DART_COMMON_DECLARE_SHARED_WEAK(X)