summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-26 20:45:50 +0200
committerDavid Robillard <d@drobilla.net>2017-03-26 20:45:50 +0200
commit09a0252c938fbdc3a0329520e78586432528eda9 (patch)
treea3bee19b634c7a763935a1d16bad550ae1f43c0f
parent5df29e8cc91115098dcb09978722c76b71689fa3 (diff)
downloadingen-09a0252c938fbdc3a0329520e78586432528eda9.tar.gz
ingen-09a0252c938fbdc3a0329520e78586432528eda9.tar.bz2
ingen-09a0252c938fbdc3a0329520e78586432528eda9.zip
Add unique_ptr alias
-rw-r--r--ingen/types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ingen/types.hpp b/ingen/types.hpp
index d1055e22..30072b3f 100644
--- a/ingen/types.hpp
+++ b/ingen/types.hpp
@@ -31,10 +31,14 @@ template <class T>
using WPtr = std::weak_ptr<T>;
template <class T>
+using UPtr = std::unique_ptr<T>;
+
+template <class T>
using MPtr = Raul::managed_ptr<T>;
#else
#define SPtr std::shared_ptr
#define WPtr std::weak_ptr
+#define UPtr std::unique_ptr
#define MPtr Raul::managed_ptr
#endif