5 // Created by James McIlree on 4/15/13.
6 // Copyright (c) 2013 Apple. All rights reserved.
9 #ifndef CPPUtil_UtilMakeUnique_hpp
10 #define CPPUtil_UtilMakeUnique_hpp
12 /* Not needed in C++14 or later */
13 #if __cplusplus <= 201103
15 template<typename T, typename ...Args>
16 std::unique_ptr<T> make_unique( Args&& ...args )
18 return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );