Defined Terms
associative array Array whose elements are indexed by key rather than positionally. We say that the array maps a key to its associated value.
associative container Type that holds a collection of objects that supports efficient lookup by key.
hash Special library template that the unordered containers use to manage the position of their elements.
hash function Function that maps values of a given type to integral (size_t) values. Equal values must map to equal integers; unequal values should map to unequal integers where possible.
key_type Type defined by the associative containers that is the type for the keys used to store and retrieve values. For a map, key_type is the type used to index the map. For set, key_type and value_type ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access