[#bsl-operator_S-06]
= xref:bsl.adoc[bsl]::operator&quot;&quot;&lowbar;S
:relfileprefix: ../
:mrdocs:

`operator&quot;&quot;&lowbar;S` overloads

== Synopses

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

Convert a character sequence of the specified `length` excluding the terminating null character starting at the beginning of the specified `characterString` to a string object of the indicated return type&period; Use the `bslma&colon;&colon;Default&colon;&colon;globalAllocator()` to supply memory&period; (See the &quot;Memory Allocation For a File&hyphen;Scope Strings&quot; section in the component&hyphen;level documentation&period;)


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

[.small]#xref:bsl/operator_S-033.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


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

[.small]#xref:bsl/operator_S-039.adoc[_» more&period;&period;&period;_]#


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