BloombergLP::bslma::ExceptionGuard::ExceptionGuard

Create the exception guard for the specified object at the specified line number. Optionally, specify basicAllocator used to supply memory.

Synopsis

Declared in <bslma_exceptionguard.h>

ExceptionGuard(
    OBJECT const* object,
    int line,
    Allocator* basicAllocator = 0);

Parameters

NameDescription
objectThe address of the object under test.
lineThe source line number associated with this guard.
basicAllocatorThe allocator used to supply memory.