Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bdlb::PrintAdapterUtil Struct Reference

#include <bdlb_printadapter.h>

List of all members.

Static Public Member Functions

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

Detailed Description

This struct provides a namespace for a function template that facilitates the construction of a PrintAdapter without having to explicitly specify template arguments in C++03. Note that in C++17 and later, CTAD may be used instead of this struct to call the PrintAdapter constructor without having to explicitly specify the template argument.

See Component bdlb_printadapter


Member Function Documentation

template<class TYPE >
static PrintAdapter<TYPE> bdlb::PrintAdapterUtil::makeAdapter ( const TYPE &  object,
int  level = 0,
int  spacesPerLevel = 4 
) [static]

Create and return a PrintAdapter object, passing the constructor the specified object, level, and spacesPerLevel.


The documentation for this struct was generated from the following file: