sisi4s
Loading...
Searching...
No Matches
SharedPointer.hpp
Go to the documentation of this file.
1#ifndef SHARED_POINTER_DEFINED
2#define SHARED_POINTER_DEFINED
3
4#include <memory>
5
6// provide convenience macros for shared pointers
7
8#define PTR(TYPE) std::shared_ptr<TYPE>
9#define WEAK_PTR(TYPE) std::weak_ptr<TYPE>
10#define NEW(TYPE, ...) std::make_shared<TYPE>(__VA_ARGS__)
11
12#endif