Convert an arbitrary object to a string for logging purposes.

Synopsis

Declared in <folly/logging/ObjectToString.h>

template<typename Arg>
std::string
objectToString(Arg const& arg);

Return Value

The string representation of the object.

Parameters

Name

Description

arg

The object to convert.

Created with MrDocs