printOrNull overloads
Synopses
Declared in <bslim_printer.h>
Format the object at address, or print "NULL" if address is 0.
template<class TYPE>
void
printOrNull(
TYPE const& address,
char const* name) const;
Print address as a hexadecimal pointer, prefixed by name.
template<>
void
printOrNull<void*>(
void const*& address,
char const* name) const;
Print address as a hexadecimal pointer, prefixed by name.
template<>
void
printOrNull<void const*>(
void const const*& address,
char const* name) const;
Parameters
Name |
Description |
address |
pointer to the object to format; "NULL" if null |
name |
attribute name printed before the value; omitted if null |
Created with MrDocs