moya-lang / Allocator

Ultra fast C++11 allocator for STL containers.
BSD 2-Clause "Simplified" License
273 stars 25 forks source link

Failed with std::vector #13

Closed colinc74 closed 3 years ago

colinc74 commented 3 years ago

When I test it for std::vector, it will fail in construct()

moya-mmoczala commented 3 years ago

Thank you for reporting. As mentioned in the read me the vector is not a container supported by the allocator. It is intended for list like data structures. Vector offers more efficient mechanisms by default.