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

Name

Description

other

object used to copy‐construct the proxied value

basicAllocator

allocator optionally supplied to TYPE

Created with MrDocs