[#BloombergLP-bdlb-PrintAdapterUtil-makeAdapter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintAdapterUtil.adoc[PrintAdapterUtil]::makeAdapter
:relfileprefix: ../../../
:mrdocs:

Create and return a `PrintAdapter` for the specified `object`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
xref:BloombergLP/bdlb/PrintAdapter.adoc[PrintAdapter&lt;TYPE&gt;]
makeAdapter(
    TYPE const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

== Description

Pass the specified `object`, `level`, and `spacesPerLevel` to the `PrintAdapter` constructor&period;

== Return Value

a `PrintAdapter` bound to `object`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object to adapt for streaming
| *level*
| indentation level used when streamed
| *spacesPerLevel*
| spaces per indentation level used when streamed
|===


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