BloombergLP::bslstl::HashTable_Util::assertNotNullPointer

assertNotNullPointer overloads

Synopses

Declared in <bslstl_hashtable.h>

Assert that the passed argument (the specified ptr) is not a null pointer value. 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.

template<class TYPE>
static
void
assertNotNullPointer(TYPE&);
» more...

Same as the preceding overload for a mutable pointer lvalue.

template<class TYPE>
static
void
assertNotNullPointer(TYPE*& ptr);
» more...

Same as the preceding overload for a pointer lvalue.

template<class TYPE>
static
void
assertNotNullPointer(TYPE const*& ptr);
» more...