[#bsl-stold-04]
= xref:bsl.adoc[bsl]::stold
:relfileprefix: ../
:mrdocs:

`stold` overloads

== Synopses

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

Parse a string as a `long double` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
long double
xref:bsl/stold-02.adoc[stold](
    xref:bsl/string.adoc[string] const& str,
    std::size&lowbar;t* pos = 0);
----

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

Same as `stold` for `wstring`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
long double
xref:bsl/stold-06.adoc[stold](
    xref:bsl/wstring.adoc[wstring] const& str,
    std::size&lowbar;t* pos = 0);
----

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

== Return Value

`long double` value parsed from `str`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| string to parse
| *pos*
| optional output for the index after the parsed value
|===


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