[#BloombergLP-bslma-ExceptionGuard-2constructor-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ExceptionGuard.adoc[ExceptionGuard]::ExceptionGuard :relfileprefix: ../../../ :mrdocs: Create the exception guard for the specified `object` at the specified `line` number. Optionally, specify `basicAllocator` used to supply memory. == Synopses Declared in `<bslma_exceptionguard.h>` Create the exception guard for the specified `object` at the specified `line` number. Optionally, specify `basicAllocator` used to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/ExceptionGuard/2constructor-01.adoc[ExceptionGuard]( OBJECT const* object, int line, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslma/ExceptionGuard/2constructor-01.adoc[_» more..._]# Create the exception guard for the specified `object` at the specified `line` number. Optionally, specify `basicAllocator` used to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> xref:BloombergLP/bslma/ExceptionGuard/2constructor-0b.adoc[ExceptionGuard]( OBJECT const* object, int line, ALLOCATOR const& basicAllocator); ---- [.small]#xref:BloombergLP/bslma/ExceptionGuard/2constructor-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#