bsl::stof

stof overloads

Synopses

Declared in <bslstl_string.h>

Parse the specified str as a floating-point number; see stod.

float
stof(
    string const& str,
    std::size_t* pos = 0);
» more...

Same as stof for wstring.

float
stof(
    wstring const& str,
    std::size_t* pos = 0);
» more...