Formatters enable customizable way to turn an object into a string. This default implementation uses |FormatValue|.
| 17 | //! Formatters enable customizable way to turn an object into a string. |
| 18 | //! This default implementation uses |FormatValue|. |
| 19 | struct TDefaultFormatter |
| 20 | { |
| 21 | template <class T> |
| 22 | void operator()(TStringBuilderBase* builder, const T& obj) const |
| 23 | { |
| 24 | FormatValue(builder, obj, TStringBuf("v")); |
| 25 | } |
| 26 | }; |
| 27 | |
| 28 | //! Bind spec to a formatter. |
| 29 | //! Used in ranges processing. |
no outgoing calls
no test coverage detected