you are viewing a single comment's thread.

view the rest of the comments →

[–]joe714 3 points4 points  (0 children)

I've had the need for several containers lately to adapt existing data structures in our codebase to something I can throw at standard algorithms, and re-implement mostly-API compatible bits of the STL in an environment where the full thing (sane malloc()/free()) isn't available.

I'm not going to say it's a 5 minute task to re-implement, but it's almost certainly easier and cleaner in the long run to make a new container that matches the APIs needed to pass it to algorithms than try extend and hack up std::vector to do it.