[#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&period; Optionally, specify `basicAllocator` used to supply memory&period;

== Synopses

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

Create the exception guard for the specified `object` at the specified `line` number&period; Optionally, specify `basicAllocator` used to supply memory&period;


[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&period;&period;&period;_]#

Create the exception guard for the specified `object` at the specified `line` number&period; Optionally, specify `basicAllocator` used to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
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&period;&period;&period;_]#


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