The document is archived and information here might be outdated


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

typedef Allocator allocator_type;

allocator_type is a synonym for the template parameter Allocator.

Returns the function object that a multiset uses to order its elements, which is the template parameter Allocator.

For more information on Allocator, see the Remarks section of the set Class topic.

See the example for get_allocator for an example that uses allocator_type.

Header: <set>

Namespace: std

© 2016 Microsoft