diff options
Diffstat (limited to 'absl/strings/str_format.h')
-rw-r--r-- | absl/strings/str_format.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/strings/str_format.h b/absl/strings/str_format.h index e6537ea0..ffbcb9af 100644 --- a/absl/strings/str_format.h +++ b/absl/strings/str_format.h @@ -789,6 +789,11 @@ class FormatSink { return sink_->PutPaddedString(v, width, precision, left); } + // Support `absl::Format(&sink, format, args...)`. + friend void AbslFormatFlush(FormatSink* sink, absl::string_view v) { + sink->Append(v); + } + private: friend str_format_internal::FormatSinkImpl; explicit FormatSink(str_format_internal::FormatSinkImpl* s) : sink_(s) {} |