[#BloombergLP-bslma-NewDeleteAllocator-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/NewDeleteAllocator.adoc[NewDeleteAllocator]::NewDeleteAllocator
:relfileprefix: ../../../
:mrdocs:

Create a (&quot;stateless&quot;) new&hyphen;delete&hyphen;allocator object that wraps the global native `operator new` and `operator delete` functions in order to supply memory via the `Allocator` protocol&period; Note that all objects of this class share the same underlying resource&semi; hence, this constructor should generally not be invoked directly by clients&semi; instead, consider using the `static` `singleton` or `allocator` (factory) methods, or &hyphen;&hyphen; better &hyphen;&hyphen; the appropriate ones in `Default` (see `bslma&lowbar;default` for more information)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
NewDeleteAllocator();
----


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