[#BloombergLP-bdls-TempDirectoryGuard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/TempDirectoryGuard.adoc[TempDirectoryGuard]::TempDirectoryGuard
:relfileprefix: ../../../
:mrdocs:

Create temporary directory with the specified `prefix` in the system&hyphen;wide temp or current directory&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

Declared in `&lt;bdls&lowbar;tempdirectoryguard&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
TempDirectoryGuard(
    std::string&lowbar;view const& prefix,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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