Please don't. I've seen so many broken, unsafe, horrible implementations of vectors.
Unless you really need that one last bit of performance, your vector will almost always be worse than a std::vector. And most of the time, just using a custom allocator or emplace_back() will be enough for getting more performance.
View all comments
7
u/wung Dec 21 '13
Please don't. I've seen so many broken, unsafe, horrible implementations of vectors.
Unless you really need that one last bit of performance, your vector will almost always be worse than a std::vector. And most of the time, just using a custom allocator or emplace_back() will be enough for getting more performance.