4.6.0
Freundlich's C++ toolkit
|
Parses floating-point numbers.
A float string optionally starts with the symbol '-'. It is then followed by a nonempty sequence of fcppt::parse::digits, followed by a '.' (dot), followed by another nonempty sequence of fcppt::parse::digits. The float string is converted into a floating point number using fcppt::extract_from_string.
Type | Must be a floating-point type. |
Public Types | |
using | result_type = Type |
Public Member Functions | |
float_ () | |
template<typename Ch , typename Skipper > | |
fcppt::parse::result< Ch, result_type > | parse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const |
using fcppt::parse::float_< Type >::result_type = Type |
fcppt::parse::float_< Type >::float_ | ( | ) |
|
nodiscard |