allocator_base::construct
构造特定类型的对象在初始化与指定的值的指定地址。
void construct(pointer _Ptr, const Type& _Val);
参数
Parameter |
说明 |
---|---|
_Ptr |
对象将构造的位置的指针。 |
_Val |
构造的对象进行初始化的值。 |
备注
此成员函数为用户定义的分配器实现通过调用 new((void*)_Ptr Type(_Val)。
要求
**标题:**allocators
命名空间: stdext