[#BloombergLP-bslma-ExceptionGuard-2constructor-0b]
= 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&period; Optionally, specify `basicAllocator` used to supply memory&period;

== Synopsis

Declared in `&lt;bslma&lowbar;exceptionguard&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
ExceptionGuard(
    OBJECT const* object,
    int line,
    ALLOCATOR const& basicAllocator);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| The address of the object under test&period;
| *line*
| The source line number associated with this guard&period;
| *basicAllocator*
| The allocator used to supply memory&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
