[#absl-FormatRawSink]
= xref:absl.adoc[absl]::FormatRawSink
:relfileprefix: ../
:mrdocs:

A type erased wrapper around arbitrary sink objects specifically used as an argument to `Format()`&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;format&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class FormatRawSink;
----

== Description

All the object has to do define an overload of `AbslFormatFlush()` for the sink, usually by adding a ADL&hyphen;based free function in the same namespace as the sink&colon;

void AbslFormatFlush(MySink&ast; dest, absl&colon;&colon;string&lowbar;view part)&semi;

where `dest` is the pointer passed to `absl&colon;&colon;Format()`&period; The function should append `part` to `dest`&period;

FormatRawSink does not own the passed sink object&period; The passed object must outlive the FormatRawSink&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/FormatRawSink/2constructor.adoc[`FormatRawSink`]         [.small]#[constructor]#
| Implicitly convert from any type that provides the hook function as described above&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `absl::str&lowbar;format&lowbar;internal::FormatRawSinkImpl`
| 
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/Format.adoc[`Format`]
| Writes a formatted string to an arbitrary sink object (implementing the `absl&colon;&colon;FormatRawSink` interface), using a format string and zero or more additional arguments&period;
| xref:absl/FormatUntyped.adoc[`FormatUntyped`]
| Writes a formatted string to an arbitrary sink object (implementing the `absl&colon;&colon;FormatRawSink` interface), using an `UntypedFormatSpec` and zero or more additional arguments&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
