[#bsl-basic_string-01d-2constructor-0cc]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-01d.adoc[basic&lowbar;string&lt;char8&lowbar;t&gt;]::basic&lowbar;string
:relfileprefix: ../../
:mrdocs:

Create a string that has the same value as the specified `original` string by moving (in constant time) the contents of `original` to the new string&period; The allocator associated with `original` is propagated for use in the newly&hyphen;created string&period; `original` is left in a valid but unspecified state&period;

== Synopsis

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

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


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