summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-16 23:54:06 +0100
committerDavid Robillard <d@drobilla.net>2018-01-16 23:54:06 +0100
commit1c2b3d3e3740c25df4df0a87c3a74506dc49b78c (patch)
tree89e0bcfa802598cc425304ee05d7ee82c3e9d61c /ingen
parent630e2cc1e7d692e2c3ba09d2de47d19bac211707 (diff)
downloadingen-1c2b3d3e3740c25df4df0a87c3a74506dc49b78c.tar.gz
ingen-1c2b3d3e3740c25df4df0a87c3a74506dc49b78c.tar.bz2
ingen-1c2b3d3e3740c25df4df0a87c3a74506dc49b78c.zip
Add terse unique pointer type alias
Diffstat (limited to 'ingen')
-rw-r--r--ingen/types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ingen/types.hpp b/ingen/types.hpp
index b0d73194..90823b70 100644
--- a/ingen/types.hpp
+++ b/ingen/types.hpp
@@ -24,6 +24,9 @@
namespace Ingen {
template <class T>
+using UPtr = std::unique_ptr<T>;
+
+template <class T>
using SPtr = std::shared_ptr<T>;
template <class T>