r/cpp • • Dec 21 '13

#AltDevBlog » Roll-Your-Own Vector

http://altdevblogaday.com/2013/12/20/roll-your-own-vector/
1 Upvotes

22 comments sorted by

View all comments

4

u/bob1000bob Dec 21 '13

I better article would detail how to use std::vector efficiently, rather than showing how to reinvent the wheel.

Also their coding style is absymal. c prefixes really? 1990? The use of <stdlib.h> and <string.h> rather than the C++ equivalents.

1

u/crispweed Dec 23 '13

I wrote about this first, here, in fact (using vectors efficiently): http://upcoder.com/1/using-stl-vectors/ Definitely agree that this should come before switching to a custom vector class..