Is there ever a reason to use std::list? [duplicate]
问题 This question already has answers here : Under what circumstances are linked lists useful? (15 answers) Closed 6 years ago . After having read this question and looking at some results here, it seems like one should altogether completely avoid lists in C++. I always expected that linked lists would be the containers of choice for cases where I only need to iterate over all the contents because insertion is a matter of pointer manipulation and there is never a need to reallocate. Apparently,