构造 scoped_allocator_adaptor 对象。
scoped_allocator_adaptor();
scoped_allocator_adaptor(const scoped_allocator_adaptor& right) noexcept;
template<class Outer2>
scoped_allocator_adaptor(
const scoped_allocator_adaptor<Outer2, Inner...>& right) noexcept;
template<class Outer2>
scoped_allocator_adaptor(
scoped_allocator_adaptor<Outer2, Inner...>&& right) noexcept;
template<class Outer2>
scoped_allocator_adaptor(Outer2&& al,
const Inner&... rest) noexcept;
参数
right
现有 scoped_allocator_adaptor。al
当作外部程序分配要使用的现有的分配器。rest
为内部分配程序将使用分配程序的列表。
备注
第一构造函数的默认构造其存储的程序分配对象。 单元格的分配器从 right中对应的对象下三个构造函数构造中的每个。 最后构造函数构造其从对应参数的存储的分配器对象都可在参数列表。
要求
页眉: <scoped_allocator>
命名空间: std