33 #ifndef DART_COMMON_DETAIL_MEMORY_IMPL_HPP_
34 #define DART_COMMON_DETAIL_MEMORY_IMPL_HPP_
38 #include "dart/config.hpp"
40 #if EIGEN_VERSION_AT_LEAST(3, 2, 1) && EIGEN_VERSION_AT_MOST(3, 2, 8)
43 # include <Eigen/StdVector>
50 template <
typename _Tp,
typename... _Args>
55 #if EIGEN_VERSION_AT_LEAST(3, 2, 1) && EIGEN_VERSION_AT_MOST(3, 2, 8)
56 return std::allocate_shared<_Tp>(
57 detail::aligned_allocator_cpp11<_Tp_nc>(),
58 std::forward<_Args>(__args)...);
60 return std::allocate_shared<_Tp>(
61 Eigen::aligned_allocator<_Tp_nc>(), std::forward<_Args>(__args)...);
66 template <
typename T,
typename... Args>
69 return std::make_unique<T>(std::forward<Args>(args)...);
std::string type
Definition: SdfParser.cpp:82
std::shared_ptr< _Tp > make_aligned_shared(_Args &&... __args)
Definition: Memory-impl.hpp:51
std::unique_ptr< T > make_unique(Args &&... args)
Definition: Memory-impl.hpp:67
Definition: BulletCollisionDetector.cpp:65