[#BloombergLP-bslstl-HashTable_Util-assertNotNullPointer-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_Util.adoc[HashTable_Util]::assertNotNullPointer :relfileprefix: ../../../ :mrdocs: Assert that a non‐pointer argument is accepted (no‐op). == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static void assertNotNullPointer(TYPE& ptr); ---- == Description This overload is selected when `TYPE` is not a pointer. 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. == Parameters [cols="1,4"] |=== | Name| Description | *ptr* | non‐pointer value (never treated as null) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#