[#BloombergLP-bslim-Printer-printOrNull-0bc]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer.adoc[Printer]::printOrNull
:relfileprefix: ../../../
:mrdocs:

`printOrNull` overloads

== Synopses

Declared in `&lt;bslim&lowbar;printer&period;h&gt;`

Format the object at `address`, or print &quot;NULL&quot; if `address` is 0&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
xref:BloombergLP/bslim/Printer/printOrNull-09.adoc[printOrNull](
    TYPE const& address,
    char const* name) const;
----

[.small]#xref:BloombergLP/bslim/Printer/printOrNull-09.adoc[_» more&period;&period;&period;_]#

Print `address` as a hexadecimal pointer, prefixed by `name`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
void
xref:BloombergLP/bslim/Printer/printOrNull-0bf.adoc[printOrNull&lt;void*&gt;](
    void const*& address,
    char const* name) const;
----

[.small]#xref:BloombergLP/bslim/Printer/printOrNull-0bf.adoc[_» more&period;&period;&period;_]#

Print `address` as a hexadecimal pointer, prefixed by `name`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
void
xref:BloombergLP/bslim/Printer/printOrNull-06.adoc[printOrNull&lt;void const*&gt;](
    void const const*& address,
    char const* name) const;
----

[.small]#xref:BloombergLP/bslim/Printer/printOrNull-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| pointer to the object to format&semi; &quot;NULL&quot; if null
| *name*
| attribute name printed before the value&semi; omitted if null
|===


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