4.4.1
|
|
Freundlich's C++ toolkit |
Converts the success value of a parser into another success value.
If the parser p returns s, then convert(p,f)
returns the success value f(s)
. Errors returned by p remain unchanged.
Result | The success type of this parser. |
Public Types | |
using | result_type = Result |
using | function_type = fcppt::function< result_type(fcppt::parse::result_of< Parser > &&)> |
Public Member Functions | |
convert (Parser &&, function_type &&) | |
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::convert< Parser, Result >::function_type = fcppt::function<result_type(fcppt::parse::result_of<Parser> &&)> |
using fcppt::parse::convert< Parser, Result >::result_type = Result |
fcppt::parse::convert< Parser, Result >::convert | ( | Parser && | , |
function_type && | |||
) |
fcppt::parse::result< Ch, result_type > fcppt::parse::convert< Parser, Result >::parse | ( | fcppt::reference< fcppt::parse::basic_stream< Ch > > | , |
Skipper const & | |||
) | const |