23 General utilities library [utilities]

23.12 Memory resources [mem.res]

23.12.3 Class template polymorphic_­allocator [mem.poly.allocator.class]

23.12.3.1 polymorphic_­allocator constructors [mem.poly.allocator.ctor]

polymorphic_allocator() noexcept;

Effects: Устанавливается memory_­rsrc на get_­default_­resource().

polymorphic_allocator(memory_resource* r);

Requires: r не равно нулю.

Effects: Устанавливается memory_­rsrc на r.

Throws: Ничего такого.

[ Note: Этот конструктор обеспечивает неявное преобразование из memory_­resource*. ] end note

template <class U> polymorphic_allocator(const polymorphic_allocator<U>& other) noexcept;

Effects: Устанавливается memory_­rsrc на other.resource().