[#bsl-basic_string-0faf-2constructor-05c] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::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>] original, ALLOCATOR const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#