Partager via


scoped_allocator_adaptor::scoped_allocator_adaptor Constructor

Constructs a scoped_allocator_adaptor object.

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;

Parameters

  • right
    An existing scoped_allocator_adaptor.

  • al
    An existing allocator to be used as the outer allocator.

  • rest
    A list of allocators to be used as the inner allocators.

Remarks

The first constructor default constructs its stored allocator objects. Each of the next three constructors constructs its stored allocator objects from the corresponding objects in right. The last constructor constructs its stored allocator objects from the corresponding arguments in the argument list.

Requirements

Header: <scoped_allocator>

Namespace: std

See Also

Reference

scoped_allocator_adaptor Class