[#BloombergLP-bslim-Printer-printOrNull-0bc]
= 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;

== Synopses

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

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;


[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;_]#


[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;_]#


[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;_]#


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