proxygen
folly::FormatValue< KeyValue > Class Template Reference

Public Member Functions

 FormatValue (const KeyValue &kv)
 
template<class FormatCallback >
void format (FormatArg &arg, FormatCallback &cb) const
 

Private Attributes

const KeyValue & kv_
 

Detailed Description

template<>
class folly::FormatValue< KeyValue >

Definition at line 348 of file FormatTest.cpp.

Constructor & Destructor Documentation

folly::FormatValue< KeyValue >::FormatValue ( const KeyValue &  kv)
inlineexplicit

Definition at line 350 of file FormatTest.cpp.

350 : kv_(kv) {}

Member Function Documentation

template<class FormatCallback >
void folly::FormatValue< KeyValue >::format ( FormatArg arg,
FormatCallback &  cb 
) const
inline

Definition at line 353 of file FormatTest.cpp.

References folly::format(), and folly::format_value::formatFormatter().

353  {
355  folly::format("<key={}, value={}>", kv_.key, kv_.value), arg, cb);
356  }
void formatFormatter(const BaseFormatter< Derived, containerMode, Args... > &formatter, FormatArg &arg, FormatCallback &cb)
Definition: Format-inl.h:380
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
Definition: Format.h:271

Member Data Documentation

const KeyValue& folly::FormatValue< KeyValue >::kv_
private

Definition at line 359 of file FormatTest.cpp.


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