Allow initialization of UniquePtrList from vector of pointers.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-05-31 16:58:45 +02:00
parent bfe1fcc805
commit 262156fbd2
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ namespace ArbUt {
public: public:
inline UniquePtrList() : _vector() {} inline UniquePtrList() : _vector() {}
inline UniquePtrList(std::vector<ValueT*> vec) : _vector(vec) {}
explicit inline UniquePtrList(size_t capacity) : _vector() { _vector.reserve(capacity); } explicit inline UniquePtrList(size_t capacity) : _vector() { _vector.reserve(capacity); }
inline UniquePtrList(const std::initializer_list<ValueT*>& l) : _vector(l) {} inline UniquePtrList(const std::initializer_list<ValueT*>& l) : _vector(l) {}
inline UniquePtrList(ValueT* const* begin, ValueT* const* end) : _vector(begin, end) {} inline UniquePtrList(ValueT* const* begin, ValueT* const* end) : _vector(begin, end) {}