Skip to content

Latest commit

 

History

History
88 lines (71 loc) · 3.61 KB

File metadata and controls

88 lines (71 loc) · 3.61 KB
title <hash_map> | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
f1_keywords
std.<hash_map>
<hash_map>
std::<hash_map>
dev_langs
C++
helpviewer_keywords
hash_map header
ms.assetid 0765708a-a668-42a2-9800-654c857bdcc2
caps.latest.revision 27
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

<hash_map>

Note

This header is obsolete. The alternative is <unordered_map>.

Defines the container template classes hash_map and hash_multimap and their supporting templates.

In Visual C++ .NET 2003, members of the <hash_map> and <hash_set> header files are no longer in the std namespace, but rather have been moved into the stdext namespace. See stdext Namespace for more information.

Syntax

#include <hash_map>  
  

Operators

Hash_map version Hash_multimap version Description
operator!= (hash_map) operator!= (hash_multimap) Tests if the hash_map or hash_multimap object on the left side of the operator is not equal to the hash_map or hash_multimap object on the right side.
operator== (hash_map) operator== (hash_multimap) Tests if the hash_map or hash_multimap object on the left side of the operator is equal to the hash_map or hash_multimap object on the right side.

Specialized Template Functions

Hash_map version Hash_multimap version Description
swap (hash_map) swap (hash_multimap) Exchanges the elements of two hash_maps or hash_multimaps.

Classes

hash_compare Class Describes an object that can be used by any of the hash associative containers — hash_map, hash_multimap, hash_set, or hash_multiset — as a default Traits parameter object to order and hash the elements they contain.
value_compare Class Provides a function object that can compare the elements of a hash_map by comparing the values of their keys to determine their relative order in the hash_map.
hash_map Class Used for the storage and fast retrieval of data from a collection in which each element is a pair that has a sort key whose value is unique and an associated data value.
hash_multimap Class Used for the storage and fast retrieval of data from a collection in which each element is a pair that has a sort key whose value need not be unique and an associated data value.

Requirements

Header: <hash_map>

Namespace: stdext

See Also

Header Files Reference
Thread Safety in the C++ Standard Library
C++ Standard Library Reference