Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This API is obsolete. The alternative is unordered_map Class.
A type describes the sort key object that constitutes each element of the hash_map.
typedef Key key_type;
Remarks
key_type is a synonym for the template parameter Key.
For more information on Key, see the Remarks section of the hash_map Class topic.
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 The stdext Namespace for more information.
Example
See example for value_type for an example of how to declare and use key_type.
Requirements
Header: <hash_map>
Namespace: stdext