Return a maximally aligned, non‐null pointer that cannnot organically result from any operation other than calling this function; i.e., it is a singular pointer. Within a single program execution, no other current or future object, of any storage duration, will have an address matching this function's return value. The returned address may be used by an allocation function to indicate a non‐allocation, e.g., the result of allocating zero bytes. The behavior is undefined if the returned pointer is dereferenced. Note that the same address is returned each time this function is called.
Synopsis
Declared in <bslma_memoryresourceimpsupport.h>
constexpr
static
void*
singularPointer();
Created with MrDocs