[#BloombergLP-bslma-MemoryResourceImpSupport-singularPointer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/MemoryResourceImpSupport.adoc[MemoryResourceImpSupport]::singularPointer
:relfileprefix: ../../../
:mrdocs:

Return a singular, maximally aligned, non&hyphen;null pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
void*
singularPointer();
----

== Description

Return a maximally aligned, non&hyphen;null pointer that cannnot organically result from any operation other than calling this function&semi; i&period;e&period;, it is a _singular_ pointer&period; Within a single program execution, no other current or future object, of any storage duration, will have an address matching this function&apos;s return value&period; The returned address may be used by an allocation function to indicate a _non&hyphen;allocation_, e&period;g&period;, the result of allocating zero bytes&period; The behavior is undefined if the returned pointer is dereferenced&period; Note that the same address is returned each time this function is called&period;

== Return Value

a singular, maximally aligned, non&hyphen;null pointer


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