EmplaceConstructible
指定类型的对象可以由给定的分配器从未初始化的存储中的给定参数集构造。
所需
类型T是EmplaceConstructible进入ContainerX28%value_type是相同的T29%来自论点args如果,给予。
A | an allocator type |
|---|---|
m | an lvalue of type A |
p | the pointer of type T* prepared by the container |
args | zero or more arguments |
何地X::allocator_type是相同的std::allocator_traits<A>::rebind_alloc<T>,,,
下列表达式格式良好:
二次
std::allocator_traits<A>::construct(m, p, args);二次
如果X如果不知道分配器,则该术语的定义为A成std::allocator<T>,除非不需要创建分配器对象,并且用户定义的专门化为std::allocator没有实例化。
另见
CopyInsertable
*。
MoveInsertable
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

