Wrapper around bsl::polymorphic_allocator that can tolerate being constructed with a null pointer.

Synopsis

Declared in <bslalg_constructorproxy.h>

template<class TYPE = bsl::polymorphic_allocator<>::value_type>
class ConstructorProxy_PolymorphicAllocator
    : public bsl::polymorphic_allocator<TYPE>

Base Classes

Name

Description

bsl::polymorphic_allocator<TYPE>

Alias for std::pmr::polymorphic_allocator in the bsl namespace.

Member Functions

Name

Description

ConstructorProxy_PolymorphicAllocator [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.

ConstructorProxy_PolymorphicAllocator [constructor]

Create an allocator using the same memory_resource as the specified other allocator.

operator BloombergLP::bslmf::NestedTraitDeclaration<ConstructorProxy_PolymorphicAllocator, IsStdAllocator>

Declare that ConstructorProxy_PolymorphicAllocator is a standard allocator.

operator BloombergLP::bslmf::NestedTraitDeclaration<ConstructorProxy_PolymorphicAllocator, UsesBslmaAllocator, false>

Declare that ConstructorProxy_PolymorphicAllocator does not use a bslma allocator when false is specified.

Created with MrDocs