CombineHarvester
MakeUnique.h
Go to the documentation of this file.
1
#ifndef CombineTools_MakeUnique_h
2
#define CombineTools_MakeUnique_h
3
#include <memory>
4
5
namespace
ch
{
6
7
template
<
typename
T,
typename
... Args>
8
std::unique_ptr<T>
make_unique
(Args&&... args) {
9
return
std::unique_ptr<T>(
new
T(std::forward<Args>(args)...));
10
}
11
}
12
13
#endif
ch
Definition:
Algorithm.h:10
ch::make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition:
MakeUnique.h:8