[#bsl-operator_s-05]
= xref:bsl.adoc[bsl]::operator&quot;&quot;&lowbar;s
:relfileprefix: ../
:mrdocs:

Create a `wstring` from a user&hyphen;defined string literal&period;

== Synopsis

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

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

== Return Value

string constructed from the character literal

== Parameters

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


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