[#bsl-basic_string-0fa9] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS>] :relfileprefix: ../ :mrdocs: Deduce the template parameters `CHAR_TYPE` and `TRAITS` from the corresponding template parameters of the `bsl::basic_string_view` passed to the constructor of `basic_string`. This deduction guide does not participate unless the specified `ALLOC` is convertible to `bsl::allocator<CHAR_TYPE>`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_TYPE, class CHAR_TRAITS, class ALLOC, class DEFAULT_ALLOCATOR = xref:bsl/allocator-0df.adoc[bsl::allocator<CHAR_TYPE>]> requires bsl::is_convertible_v<ALLOC *, DEFAULT_ALLOCATOR> xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS>]( basic_string_view<CHAR_TYPE, CHAR_TRAITS>, ALLOC*) -> xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS>]; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#