备注
此 API 已过时。替代为 unordered_map 类。
表示 hash_map 对象的分配程序类的类型。
typedef list<typename Traits::value_type, typename Traits::allocator_type>::allocator_type allocator_type;
备注
allocator_type 是 Allocator 模板参数的同义词。
在Visual C++ .NET 2003中,成员<hash_map> 和 <hash_set> 头文件不再在std命名空间,而是已经进入了stdext命名空间。 有关更多信息,请参见 stdext 命名空间。
示例
使用 allocator_type的示例,请参见 get_allocator 示例。
要求
标头: <hash_map>
**命名空间:**stdext