Should I replace std::vector with btAlignedObjectArray?
Posted: Wed Oct 11, 2017 5:15 am
I see description of btAlignedObjectArray class
But I confuse why Bullet don't use std::vector (std::vector is really optimized) instead of creating btAlignedObjectArray class, maybe there is a reason so I don't know if I should use std::vector instead of btAlignedObjectArray?
Thanks for reading
I see that stl and std are difference..\bullet3\src\LinearMath\btAlignedObjectArray.h
The btAlignedObjectArray template class uses a subset of the stl::vector interface for its methods
It is developed to replace stl::vector to avoid portability issues, including STL alignment issues to add SIMD/SSE data
But I confuse why Bullet don't use std::vector (std::vector is really optimized) instead of creating btAlignedObjectArray class, maybe there is a reason so I don't know if I should use std::vector instead of btAlignedObjectArray?
Thanks for reading