[#SpanWriter-2constructor-09]
= xref:SpanWriter.adoc[SpanWriter]::SpanWriter
:relfileprefix: ../
:mrdocs:

Construct a writer and immediately serialize the given items into the span&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename&period;&period;&period; Args&gt;
SpanWriter(
    std::span&lt;std::byte&gt; dest,
    Args&&&period;&period;&period; args);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| Span of bytes the writer will fill&period;
| *args*
| Items to serialize into the span on construction&period;
|===


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