Header Reference: <unordered_map>
Header Reference: <unordered_map>
Hash-based key-value associative container facilities declared in <unordered_map>.
Header Reference: <unordered_map>
Hash-based key-value associative container facilities declared in <unordered_map>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<unordered_map>std::unordered_mapstd::unordered_multimapfind, contains, count, equal_rangeinsert, emplace, try_emplace, insert_or_assign, erase, extract, mergebucket_count, load_factor, reserve, rehashUse <unordered_map> when key-value lookup speed matters more than iteration order and hashing is an appropriate fit.
unordered_multimap only when repeated keys are structurally required#include <unordered-map>
int main() {
// Start with the primary facility from <unordered-map>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}