Turi Create
4.0
make_unique.hpp
1
/* Copyright © 2020 Apple Inc. All rights reserved.
2
*
3
* Use of this source code is governed by a BSD-3-clause license that can
4
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5
*/
6
7
#pragma once
8
9
#include <memory>
10
11
#if __cplusplus <= 201103L
12
13
namespace
std
{
14
15
template
<
typename
T,
typename
... Args>
16
std::unique_ptr<T>
make_unique
(Args&&... args)
17
{
18
return
std::unique_ptr<T>(
new
T(std::forward<Args>(args)...));
19
}
20
21
}
// namespace std
22
23
#endif
std
STL namespace.
turi::make_unique
std::shared_ptr< sarray< flexible_type > > make_unique(std::shared_ptr< sarray< flexible_type > > indexed_column)
core
util
std
make_unique.hpp
Generated by
1.8.13