1 | /* |
---|---|
2 | * IXUniquePtr.h |
3 | * Author: Benjamin Sergeant |
4 | * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. |
5 | */ |
6 | |
7 | #pragma once |
8 | |
9 | #include <memory> |
10 | |
11 | namespace ix |
12 | { |
13 | template<typename T, typename... Args> |
14 | std::unique_ptr<T> make_unique(Args&&... args) |
15 | { |
16 | return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); |
17 | } |
18 | } // namespace ix |
19 |