Template Function aligned_shared

Function Documentation

template<typename Type, typename ...Arguments>
inline std::shared_ptr<Type> aligned_shared(Arguments&&... arguments)

Aligned allocator to be used like std::make_shared.

To be used like: std::shared_ptr my_ptr = aligned_shared<aslam::RadTanDistortion>(params);