다음을 통해 공유


<hash_map>

참고

This header is obsolete.<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. 자세한 내용은 stdext 네임스페이스를 참조하십시오.

#include <hash_map>

연산자

Hash_map version

Hash_multimap version

설명

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

설명

swap (hash_map)

swap (hash_multimap)

Exchanges the elements of two hash_maps or hash_multimaps.

클래스

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.

요구 사항

헤더: <hash_map>

네임스페이스: stdext

참고 항목

참조

C++ 표준 라이브러리의 스레드 보안

표준 템플릿 라이브러리

기타 리소스

C++ 표준 라이브러리 헤더 파일