std-list

Which is faster: vector traversal or list traversal?

At the interview, they asked: which is faster, traversing a vector or traversing a list with values output to the console? Ho ... thing to do with the first? If the entire vector or list does not get into the cache, will the container crawl time increase?