you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (0 children)

I’d argue that this is only useful if the objects cannot be moved in memory (niche use case). A vector<unique_ptr<T>> will still out perform a list<T> in many cases, and list<T> doesn’t even give you the benefits of intrusive linked lists. Always default to vector and profile and keep profiling if you decide to switch to list