共用方式為


hash_map::mapped_type

A type that represents the data type stored in a hash_map.

typedef Type mapped_type;

Remarks

The type mapped_type is a synonym for the template parameter Type.

For more information on Type see 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

See Also

Concepts

hash_map Class

hash_map Members

Standard Template Library