[#BloombergLP-bslstl-HashTable_Util-assertNotNullPointer-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_Util.adoc[HashTable&lowbar;Util]::assertNotNullPointer
:relfileprefix: ../../../
:mrdocs:

`assertNotNullPointer` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

Assert that the passed argument (the specified `ptr`) is not a null pointer value&period; Note that this utility is necessary as the `HashTable` class template may be instantiated with function pointers for the hasher or comparator policies, but there is no easy way to assert in general that the value of a generic type passed to a function is not a null pointer value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-08.adoc[assertNotNullPointer](TYPE&);
----

[.small]#xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-08.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a mutable pointer lvalue&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-05.adoc[assertNotNullPointer](TYPE*& ptr);
----

[.small]#xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-05.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a pointer lvalue&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-01.adoc[assertNotNullPointer](TYPE const*& ptr);
----

[.small]#xref:BloombergLP/bslstl/HashTable_Util/assertNotNullPointer-01.adoc[_» more&period;&period;&period;_]#


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