BloombergLP::bdlma::Factory::createObject

Create a default-constructed instance of TYPE.

Synopsis

Declared in <bdlma_factory.h>

virtual
TYPE*
createObject() = 0;

Description

Create an instance of the specified TYPE using default arguments. Return the address of the newly-created object on success, and 0 otherwise. The instance must be destroyed using the deleteObject method of this object factory.

Return Value

address of the newly-created object on success, and 0 otherwise