BloombergLP::bdlcc::ObjectPool_GeneralProxy::ObjectPool_GeneralProxy

Create a proxy holding a copy of the specified other object.

Synopsis

Declared in <bdlcc_objectpool.h>

ObjectPool_GeneralProxy(
    TYPE const& other,
    bslma::Allocator* basicAllocator);

Description

Create a new proxy and a new object constructed from the specified other object. If TYPE declares the "Uses Allocator" trait, the specified basicAllocator is supplied to its copy constructor; otherwise basicAllocator is ignored.

Parameters

NameDescription
otherobject used to copy-construct the proxied value
basicAllocatorallocator optionally supplied to TYPE