allocator_base::construct

构造给定类型对象的初始化。一个将的指定地址。

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

参数

参数

说明

_Ptr

将对对象构造的位置的指针。

_Val

构造的对象进行初始化的值。

备注

此成员函数为用户定义的赋值程序实现通过调用 new((void*)_Ptr Type(_Val)。

要求

页眉: <分配程序>

**命名空间:**stdext

请参见

参考

allocator_base 类