[#bsl-basic_string-01d-2constructor-06d] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-01d.adoc[basic_string<char8_t>]::basic_string :relfileprefix: ../../ :mrdocs: Create a string that has the same value as the specified `original` string, where the type `original` is the string type native to the compiler's library, instantiated with the same character type and traits type, but not necessarily the same allocator type. The resulting string will contain the same sequence of characters as `original`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not specified, then a default‐constructed allocator is used. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC2> basic_string( std::basic_string<char8_t, char_traits<char8_t>, ALLOC2> const& original, xref:bsl/allocator-0df.adoc[allocator<char8_t>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#