[#BloombergLP-bdlb-OptionalPrinterUtil-makePrinter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/OptionalPrinterUtil.adoc[OptionalPrinterUtil]::makePrinter
:relfileprefix: ../../../
:mrdocs:

Return an `OptionalPrinter` that prints the specified `data`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;optionalprinter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
xref:BloombergLP/bdlb/OptionalPrinter.adoc[OptionalPrinter&lt;TYPE&gt;]
makePrinter(xref:bsl/optional-072.adoc[bsl::optional&lt;TYPE&gt;] const& data);
----

== Return Value

an `OptionalPrinter` that prints `data`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| optional whose value is to be printed
|===


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