Tensor Comprehensions
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
memory.h
Go to the documentation of this file.
1
16
#pragma once
17
18
#include <memory>
19
20
namespace
tc {
21
22
// note: this implementation does not disable this overload for array types
23
template
<
typename
T,
typename
... Args>
24
std::unique_ptr<T>
make_unique
(Args&&... args) {
25
return
std::unique_ptr<T>(
new
T(std::forward<Args>(args)...));
26
}
27
28
}
// namespace tc
tc::make_unique
std::unique_ptr< T > make_unique(Args &&...args)
Definition:
memory.h:24
include
tc
core
utils
memory.h
Generated by
1.8.5