From 262156fbd2dd1fb592bfa5f7a84012cdd94eb9a4 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 31 May 2020 16:58:45 +0200 Subject: [PATCH] Allow initialization of UniquePtrList from vector of pointers. --- src/Memory/UniquePtrList.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Memory/UniquePtrList.hpp b/src/Memory/UniquePtrList.hpp index c34651f..3b23697 100644 --- a/src/Memory/UniquePtrList.hpp +++ b/src/Memory/UniquePtrList.hpp @@ -15,6 +15,7 @@ namespace ArbUt { public: inline UniquePtrList() : _vector() {} + inline UniquePtrList(std::vector vec) : _vector(vec) {} explicit inline UniquePtrList(size_t capacity) : _vector() { _vector.reserve(capacity); } inline UniquePtrList(const std::initializer_list& l) : _vector(l) {} inline UniquePtrList(ValueT* const* begin, ValueT* const* end) : _vector(begin, end) {}