Aikido
memory-impl.hpp
Go to the documentation of this file.
1
#ifndef AIKIDO_COMMON_DETAIL_MEMORY_IMPL_HPP_
2
#define AIKIDO_COMMON_DETAIL_MEMORY_IMPL_HPP_
3
4
#include "
aikido/common/memory.hpp
"
5
6
namespace
aikido
{
7
namespace
common {
8
9
//==============================================================================
10
template
<
typename
T,
typename
... Args>
11
::std::unique_ptr<T>
make_unique
(Args&&... args)
12
{
13
#if __cplusplus < 201300
14
return ::std::unique_ptr<T>(
new
T(::std::forward<Args>(args)...));
15
#else
16
return ::std::make_unique<T>(::std::forward<Args>(args)...);
17
#endif
18
}
19
20
}
// namespace common
21
}
// namespace aikido
22
23
#endif // AIKIDO_COMMON_DETAIL_MEMORY_IMPL_HPP_
aikido
Format of serialized trajectory in YAML.
Definition:
algorithm.hpp:4
memory.hpp
aikido::common::make_unique
::std::unique_ptr< T > make_unique(Args &&... args)
Definition:
memory-impl.hpp:11
include
aikido
common
detail
memory-impl.hpp
Generated on Fri Mar 10 2023 20:07:57 for Aikido by
1.8.17