[#bsl-list-054-2constructor-065]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::list
:relfileprefix: ../../
:mrdocs:

Create a list by moving the contents of the specified `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
list(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] original);
----

== Description

The contents of `original` are moved in constant time&period; The allocator associated with `original` is propagated for use in the newly&hyphen;created list&period; `original` is left in a valid but unspecified state&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| list whose contents are moved into this list
|===


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