[#bsl-basic_string-0ce-2constructor-05f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic_string<char16_t>]::basic_string :relfileprefix: ../../ :mrdocs: Create a string that has the same value as the specified `original` string that uses the specified `basicAllocator` to supply memory. The contents of `original` are moved (in constant time) to the new string if `basicAllocator == original.get_allocator()`, and are copied (in linear time) using `basicAllocator` otherwise. `original` is left in a valid but unspecified state. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- basic_string( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<basic_string<char16_t>>] original, xref:bsl/allocator-0df.adoc[allocator<char16_t>] const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#