[#bsl-basic_string-0ce-2conversion-006]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic&lowbar;string&lt;char16&lowbar;t&gt;]::operator std::basic&lowbar;string&lt;char16&lowbar;t, char&lowbar;traits&lt;char16&lowbar;t&gt;, ALLOC2&gt;
:relfileprefix: ../../
:mrdocs:

Convert this object to a string type native to the compiler&apos;s library, instantiated with the same character type and traits type, but not necessarily the same allocator type&period; The return string will contain the same sequence of characters as `orig` and will have a default&hyphen;constructed allocator&period; Note that this conversion operator can be invoked implicitly (e&period;g&period;, during argument passing)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOC2&gt;
operator std::basic&lowbar;string&lt;char16&lowbar;t, char&lowbar;traits&lt;char16&lowbar;t&gt;, ALLOC2&gt;() const;
----


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