BloombergLP::bslma::NewDeleteAllocator::singleton

Return a reference to a process-wide unique object of this class.

Synopsis

Declared in <bslma_newdeleteallocator.h>

static
NewDeleteAllocator&
singleton();

Description

The lifetime of this object is guaranteed to extend from the first call of this method until the program terminates. Note that this method should generally not be used directly by typical clients (see bslma_default for more information).

Return Value

reference to the process-wide unique object of this class