[#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‐wide temp or current directory. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Synopsis Declared in `<bdls_tempdirectoryguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit TempDirectoryGuard( std::string_view const& prefix, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#