定义于头文件
<scoped_allocator>
|
||
scoped_allocator_adaptor select_on_container_copy_construction() const;
|
(C++11 起) | |
创建 std::scoped_allocator_adaptor
的新实例,其中外层分配器基类和每个内层分配器子对象通过调用 std::allocator_traits<A>::select_on_container_copy_construction() 获得。
(无)
新的 std::scoped_allocator_adaptor
对象,构造自正确复制的分配器。
获得复制标准容器后使用的分配器 ( std::allocator_traits 的公开静态成员函数)
|