From 09a0252c938fbdc3a0329520e78586432528eda9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Mar 2017 20:45:50 +0200 Subject: Add unique_ptr alias --- ingen/types.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ingen') diff --git a/ingen/types.hpp b/ingen/types.hpp index d1055e22..30072b3f 100644 --- a/ingen/types.hpp +++ b/ingen/types.hpp @@ -30,11 +30,15 @@ using SPtr = std::shared_ptr; template using WPtr = std::weak_ptr; +template +using UPtr = std::unique_ptr; + template using MPtr = Raul::managed_ptr; #else #define SPtr std::shared_ptr #define WPtr std::weak_ptr +#define UPtr std::unique_ptr #define MPtr Raul::managed_ptr #endif -- cgit v1.2.1