Which STL container should be the default choice for a sequence of elements?
- A std::list
- B std::vector
- C std::deque
- D std::forward_list
Answer
std::vector
Contiguous storage makes vector cache-friendly, which usually beats better asymptotic complexity at realistic sizes.





