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);

Same as stold for wstring.

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

Return Value

long double value parsed from str

Parameters

Name

Description

str

string to parse

pos

optional output for the index after the parsed value

Created with MrDocs