3 ms·
I wasn't dissing C++ here (though I do believe C++ has quite a few downfalls..), just the STL. std::vector is completely reasonable implementation for a dynami
by Peaker 12y ago
I wasn't dissing C++ here (though I do believe C++ has quite a few downfalls..), just the STL.
std::vector is completely reasonable implementation for a dynamic vector.
std::map is somewhat unreasonable, because its non-intrusiveness requires dynamic allocations, more indirections, and more expensive deletions.
std::list is useless, so when you do want linked lists, you end up using the wrong data structure, because list is out of the lexicon.