bsl::stold

stold overloads

Synopses

Declared in <bslstl_string.h>

Parse a string as a long double value.

long double
stold(
    string const& str,
    std::size_t* pos = 0);
» more...

Same as stold for wstring.

long double
stold(
    wstring const& str,
    std::size_t* pos = 0);
» more...

Return Value

long double value parsed from str

Parameters

NameDescription
strstring to parse
posoptional output for the index after the parsed value