|
|
|
|
|
by Negitivefrags
5024 days ago
|
|
Bjarne Stroustrop showed in a presentation a while back that std::list never becomes more optimal than std::vector regardless of size. Edit: Sorry, I read your comment incorrectly. Instead of std::set I would use a sorted vector without thought for anything up a thousand elements or so. After that it's probably worth profiling. Vector is probably still good even quite a good way after that depending on your use case. |
|
Until memory fragments and you can't allocate a contiguous block for a big vector.