vendredi 22 juillet 2022

What is the difference between std::list and std::vector? [duplicate]

What I already know:

  • They're sequential containers; gives the programmer the control to modify the order of the elements and how they're accessed.
  • They're both templates.

What I want to know:

  • What is the difference between a std::list and std::vector? (description on their performance differences is also welcome)

Aucun commentaire:

Enregistrer un commentaire