[#bsl-List_AllocAndSizeWrapper-2constructor]
= xref:bsl.adoc[bsl]::xref:bsl/List_AllocAndSizeWrapper.adoc[List&lowbar;AllocAndSizeWrapper]::List&lowbar;AllocAndSizeWrapper
:relfileprefix: ../../
:mrdocs:

Create an allocator and size wrapper with `basicAllocator` and `size`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
List&lowbar;AllocAndSizeWrapper(
    xref:bsl/List_AllocAndSizeWrapper.adoc[NodeAlloc] const& basicAllocator,
    xref:bsl/List_AllocAndSizeWrapper.adoc[size&lowbar;type] size);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator stored in this wrapper
| *size*
| initial element count
|===


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