[#BloombergLP-bslalg-ConstructorProxy_PolymorphicAllocator] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::ConstructorProxy_PolymorphicAllocator :relfileprefix: ../../ :mrdocs: Wrapper around `bsl::polymorphic_allocator` that can tolerate being constructed with a null pointer. == Synopsis Declared in `<bslalg_constructorproxy.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE = bsl::polymorphic_allocator<>::value_type> class ConstructorProxy_PolymorphicAllocator : public xref:bsl/polymorphic_allocator.adoc[bsl::polymorphic_allocator<TYPE>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/polymorphic_allocator.adoc[bsl::polymorphic_allocator<TYPE>]` | Alias for `std::pmr::polymorphic_allocator` in the `bsl` namespace. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/ConstructorProxy_PolymorphicAllocator/2constructor-08.adoc[`ConstructorProxy_PolymorphicAllocator`] [.small]#[constructor]# | Construct from the address of a `memory_resource` optionally specified by `r`. If `r` is null or not specified, construct from the default allocator. | xref:BloombergLP/bslalg/ConstructorProxy_PolymorphicAllocator/2constructor-0c.adoc[`ConstructorProxy_PolymorphicAllocator`] [.small]#[constructor]# | Create an allocator using the same `memory_resource` as the specified `other` allocator. | xref:BloombergLP/bslalg/ConstructorProxy_PolymorphicAllocator/2conversion-05.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<ConstructorProxy_PolymorphicAllocator, IsStdAllocator>`] | Declare that `ConstructorProxy_PolymorphicAllocator` is a standard allocator. | xref:BloombergLP/bslalg/ConstructorProxy_PolymorphicAllocator/2conversion-03.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<ConstructorProxy_PolymorphicAllocator, UsesBslmaAllocator, false>`] | Declare that `ConstructorProxy_PolymorphicAllocator` does not use a `bslma` allocator when `false` is specified. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#