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

Resize this list to `new&lowbar;size`, appending copies of `&lowbar;&lowbar;x` if growing&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;slist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resize(
    xref:bsl/slist/size_type.adoc[size&lowbar;type] new&lowbar;size,
    xref:bsl/slist/value_type.adoc[value&lowbar;type] const& &lowbar;&lowbar;x = &lowbar;Tp());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;size*
| desired number of elements
| *&lowbar;&lowbar;x*
| value used when appending new elements
|===


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