mr_ped Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
BTW: what about std::vector and your own allocator?
If you, for whatever reason, use the container API extensively enough to make this worth of effort.
(I didn't use stdlib extensively enough to be sure, but I think all the standard containers allow to use your own allocators?? Maybe I'm wrong.)
I always liked classic pointer and arrays more than those complex templates, but in PHP in connection with "foreach" I started to appreciate them a little bit. Still whenever I know enough about my array (i.e. fixed size, fixed type, small scope of code using it), I prefer classic [] array without that additional fuss and burden around. Usually in new code I don't know enough, and flexibility of vector allows better refactoring and earlier bug catching.