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.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Container?
又称: container (C++) · sequence container · associative container · unordered container