4 ms·
I think it's pretty rare you would ever use std::list and rarer still std::forward_list – the on-paper complexities might be okay but the memory locality is so
by vore 3y ago
I think it's pretty rare you would ever use std::list and rarer still std::forward_list – the on-paper complexities might be okay but the memory locality is so bad you should almost always be using std::vector or std::deque.
- mchicken 3y agoUnless you want to splice lists here and there. I'm quite disappointed the article doesn't mention these features, as for most of my career, they were the only reason to prefer std::list to other containers.