[#DataStream-resize]
= xref:DataStream.adoc[DataStream]::resize
:relfileprefix: ../
:mrdocs:

Resize the unread region to `n` elements, filling new ones with `c`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resize(
    xref:DataStream/size_type.adoc[size&lowbar;type] n,
    xref:DataStream/value_type.adoc[value&lowbar;type] c = value&lowbar;type&lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| New number of unread elements&period;
| *c*
| Value used to fill any newly added elements&period;
|===


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