Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


A type that represents the allocator class for the hash_map object.

typedef Allocator allocator_type

allocator_type is a synonym for the Allocator template parameter.

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.

See example for get_allocator for an example using allocator_type.

Header: <hash_map>

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.