[#bsl-basic_string-00]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE&gt;]
:relfileprefix: ../
:mrdocs:

Deduce template arguments for `basic&lowbar;string` from constructor arguments&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class ALLOC,
    class SZ,
    class DEFAULT&lowbar;ALLOCATOR = xref:bsl/allocator-0df.adoc[bsl::allocator&lt;CHAR&lowbar;TYPE&gt;]&gt;
requires bsl&colon;&colon;is&lowbar;convertible&lowbar;v&lt;ALLOC &ast;, DEFAULT&lowbar;ALLOCATOR&gt; &amp;&amp; !bsl&colon;&colon;is&lowbar;pointer&lowbar;v&lt;SZ&gt;
xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE&gt;](
    CHAR&lowbar;TYPE const*,
    SZ,
    ALLOC*) -> xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE&gt;];
----

== Description

Deduce the template parameter `CHAR&lowbar;TYPE` from the parameters passed to the constructor of `basic&lowbar;string`&period; This deduction guide does not participate unless the specified `ALLOC` is convertible to `bsl&colon;&colon;allocator&lt;CHAR&lowbar;TYPE&gt;`&period;


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