[#bsl-basic_string-0faf-2conversion-0f]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::operator basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;
:relfileprefix: ../../
:mrdocs:

Convert this object to a `string&lowbar;view` type instantiated with the same character type and traits type&period; The return view will contain the same sequence of characters as this object&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"]
----
operator basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;() const;
----


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