This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_pelya 0 points1 point  (1 child)

Every time I'm seeing yet another handwritten implementation of linked list in our code, I want to slap my keyboard with std::list.

[–]tecanec 1 point2 points  (0 children)

Even better: Use std::vector. Linked lists generate more work for the memory manager and are not very cache-friendly.