2 ms·
That's only true if you actually need to access more than a few elements at once. And if you never need to insert/delete to/from anywhere but the end.
by anarazel 7y ago
That's only true if you actually need to access more than a few elements at once. And if you never need to insert/delete to/from anywhere but the end.
- earthboundkid 7y agoEven if you need middle inserts but not a B-tree (weird), it’s still better to use a vector in most cases. Time to find the insertion point will dominate.