This class acts as a proxy for constructing and destroying an object of parameterized OBJECT_TYPE, where OBJECT_TYPE may or may not use a bslma allocator for supplying memory. The constructors for this proxy class take a bslma::Allocator *. If OBJECT_TYPE has the bslma::UsesBslmaAllocator trait declared, then the supplied allocator will be used to construct the proxied object. Otherwise, the allocator is ignored.
Synopsis
Declared in <bslalg_constructorproxy.h>
template<class OBJECT_TYPE>
class ConstructorProxy;
Type Aliases
Name |
Description |
Alias for the proxied |
|
Minimally picky allocator type that can be used to construct a |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this proxy and the object held by this proxy. |
|
Created with MrDocs