4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Public Types | Public Member Functions
fcppt::parse::float_< Type > Class Template Reference

Detailed Description

template<typename Type>
class fcppt::parse::float_< Type >

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.

Template Parameters
TypeMust be a floating-point type.
Inheritance diagram for fcppt::parse::float_< Type >:
fcppt::parse::tag

Public Types

using result_type = Type
 

Public Member Functions

 float_ ()
 
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_typeparse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const
 

Member Typedef Documentation

◆ result_type

template<typename Type >
using fcppt::parse::float_< Type >::result_type = Type

Constructor & Destructor Documentation

◆ float_()

template<typename Type >
fcppt::parse::float_< Type >::float_ ( )

Member Function Documentation

◆ parse()

template<typename Type >
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_type > fcppt::parse::float_< Type >::parse ( fcppt::reference< fcppt::parse::basic_stream< Ch > >  ,
Skipper const &   
) const