class FormatRawSink
Defined at line 499 of file ../../third_party/abseil-cpp/src/absl/strings/str_format.h
FormatRawSink
FormatRawSink is a type erased wrapper around arbitrary sink objects
specifically used as an argument to `Format()`.
All the object has to do define an overload of `AbslFormatFlush()` for the
sink, usually by adding a ADL-based free function in the same namespace as
the sink:
void AbslFormatFlush(MySink* dest, absl::string_view part);
where `dest` is the pointer passed to `absl::Format()`. The function should
append `part` to `dest`.
FormatRawSink does not own the passed sink object. The passed object must
outlive the FormatRawSink.
Public Methods
template <typename T, typename = std::enable_if_t<std::is_constructible_v< str_format_internal::FormatRawSinkImpl, T*>>>
void FormatRawSink (T * _Nonnull raw)
Implicitly convert from any type that provides the hook function as
described above.
Defined at line 505 of file ../../third_party/abseil-cpp/src/absl/strings/str_format.h
Friends
class FormatRawSinkImpl