4 ms·
> std::list is an awful container...You should never use it, unless you really know what you are doing To put a finer point on that: you should use std::list i
by jemfinch 13y ago
> std::list is an awful container...You should never use it, unless you really know what you are doing
To put a finer point on that: you should use std::list iff you need to splice (or insert into the middle) in constant time.
- dkersten 13y agoAnd order is important and splicing is a common task and the list is large enough or copying elements expensive enough that other schemes are not viable... Linked lists really have a very narrow use case.