共用方式為


allocator_base::allocator_base

Constructs an object of type allocator_base.

allocator_base();
template <class Other>
    allocator_base(const allocator_base<Other, Sync>& _Right);

Parameters

Parameter

Description

_Right

The allocator object to be copied.

Remarks

The first constructor constructs an allocator_base instance. The second constructor constructs an allocator_base instance such that for any allocator_base<Type, _Sync> instance a, allocator_base<Type, Sync>(allocator_base<Other, Sync>(a)) == a.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

allocator_base Class