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

Format to the output stream supplied at construction the object at the specified `address`, if `address` is not 0, and print the string &quot;NULL&quot; otherwise, prefixed by the specified `name` if `name` is not 0&period; If `spacesPerLevel() &lt; 0`, print on a single line&period; If `spacesPerLevel() &gt;&equals; 0`, indent by `(absLevel() &plus; 1) &ast; spacesPerLevel()` blank spaces&period; The behavior is undefined unless `TYPE` is a pointer type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
printOrNull(
    TYPE const& address,
    char const* name) const;
----

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bslim/Printer/printOrNull-0bf.adoc[`printOrNull&lt;void*&gt;`] 
| xref:BloombergLP/bslim/Printer/printOrNull-06.adoc[`printOrNull&lt;void const*&gt;`] 
|===



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