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>

template<class ALLOCATOR>
ExceptionGuard(
    OBJECT const* object,
    int line,
    ALLOCATOR const& basicAllocator);

Parameters

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