It is stated everywhere that the common property of all sequential containers is that the elements can be accessed sequentially. But we know that std::array, std::vector and std::deque all support fast random access to the elements. std::list supports bidirectional iteration, whereas std::forward_list supports only unidirectional iteration.
So what does actually "accessed sequentially" means here?
Aucun commentaire:
Enregistrer un commentaire