Same as stof for wstring.

Synopsis

Declared in <bslstl_string.h>

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

Return Value

float value parsed from str

Parameters

Name

Description

str

string to parse

pos

optional output for the index after the parsed value

Created with MrDocs