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>(detail::aligned_allocator_cpp11<_Tp_nc>(),
57 std::forward<_Args>(__args)...);
59 return std::allocate_shared<_Tp>(Eigen::aligned_allocator<_Tp_nc>(),
60 std::forward<_Args>(__args)...);
65 template<
typename T,
typename... Args>
68 return std::unique_ptr<T>(
new 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:66
Definition: BulletCollisionDetector.cpp:63