Associative container
An associative container is a data structure that organizes elements for retrieval by keys rather than solely by positional order.
Clojure: The Essential Reference
An associative data structure is a collection that supports lookup of values by keys or numeric indexes.
- How it is used
- Organizes presence tests, nested reads, and functional updates around keyed access to maps and vectors.
- How deep it goes
- Specifies supported inputs, return behavior, missing-key cases, and exceptions through examples, without developing container internals.
- Examples
- Uses map-key and vector-index checks, nested lookups, word counters, and inventory updates.
- What you can do after
- Apply it via Clojure's contains?, get-in, select-keys, update, and update-in to test, read, and transform keyed data.
Read how Clojure: The Essential Reference explains associative container →
Learn C++ by Example
An associative container is a data structure that organizes elements by keys or ordered values rather than by positional indexes.
- How it is used
- Uses associative containers to implement dictionaries and support an answer-overlap game.
- How deep it goes
- Explains maps, multimaps, sets, access behavior, complexity, and bound searches, stopping short of full implementation internals.
- Examples
- Demonstrates hardcoded dictionaries, overlapping words, bound searches, and random dictionary selection.
- What you can do after
- Apply associative containers to build dictionary lookups and improve ordered searches.
Read how Learn C++ by Example explains associative container →
Related concepts
- containsused by · Contains is a membership-query operation that reports whether a specified value, key, element, or substring occurs in a container or collection.
- std::multimapincludes · std::multimap is a C++ standard library associative container that stores key-value pairs while allowing multiple elements with the same key.
- setincludes · A set is a collection of unique elements in which membership is determined by whether an element is present, not by duplicate occurrences.
- Mapincludes · A map is an associative data structure that stores key-value pairs and supports retrieving values by key.
- bagincludes · A bag, or multiset, is an unordered collection that permits duplicate elements and preserves their multiplicities.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

