[#bsl-operator_sv-04]
= xref:bsl.adoc[bsl]::operator&quot;&quot;&lowbar;sv
:relfileprefix: ../
:mrdocs:

`operator&quot;&quot;&lowbar;sv` overloads

== Synopses

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

User&hyphen;defined literal creating a `string&lowbar;view` from a character sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string&lowbar;view
xref:bsl/operator_sv-0c.adoc[operator&quot;&quot;&lowbar;sv](
    char const* characterString,
    std::size&lowbar;t length);
----

[.small]#xref:bsl/operator_sv-0c.adoc[_» more&period;&period;&period;_]#

User&hyphen;defined literal creating a `wstring&lowbar;view` from a wide character sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::wstring&lowbar;view
xref:bsl/operator_sv-0f.adoc[operator&quot;&quot;&lowbar;sv](
    wchar&lowbar;t const* characterString,
    std::size&lowbar;t length);
----

[.small]#xref:bsl/operator_sv-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

* `string&lowbar;view` referring to the character sequence
* `wstring&lowbar;view` referring to the wide character sequence

== Parameters

[cols="1,4"]
|===
| Name| Description
| *characterString*
| character sequence to convert
| *length*
| number of characters excluding the terminating null
|===


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