Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Container » ?

Aussi appelé : container (C++) · sequence container · associative container · unordered container

Definition 5.1 University Computer Science — Year 2 · Chapitre 5 — The Standard Library: Containers, Iterators and Algorithms

A container is a class template of the standard library that owns a collection of elements of one type, and manages their memory. A sequence container keeps the elements in the order the program puts them: std::array, std::vector, std::deque, std::list. An associative container keeps them sorted by a key, in a balanced search tree: std::set, std::map. An unordered container places them by the hash of their key, in a hash table: std::unordered_set, std::unordered_map.

Lire dans le chapitre →