allocator_base::construct

Constructs a specific type of object at a specified address that is initialized with a specified value.

void construct(pointer _Ptr, const Type& _Val);

Parameters

Parameter

Description

_Ptr

A pointer to the location where the object is to be constructed.

_Val

The value with which the object being constructed is to be initialized.

Remarks

This member function is implemented for the user-defined allocator by calling new((void*)_Ptr Type(_Val).

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

allocator_base Class