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

Reserve capacity for `n` unread elements&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| Number of unread elements to reserve capacity for&period;
|===


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