Create and return a PrintAdapter for the specified object.

Synopsis

Declared in <bdlb_printadapter.h>

template<class TYPE>
static
PrintAdapter<TYPE>
makeAdapter(
    TYPE const& object,
    int level = 0,
    int spacesPerLevel = 4);

Description

Pass the specified object, level, and spacesPerLevel to the PrintAdapter constructor.

Return Value

a PrintAdapter bound to object

Parameters

Name

Description

object

object to adapt for streaming

level

indentation level used when streamed

spacesPerLevel

spaces per indentation level used when streamed

Created with MrDocs