4.6.0
Freundlich's C++ toolkit
|
Replaces the success value of a parser with a constant.
If the parser p returns s, then convert_const(p,r)
returns r
. Errors remain unchanged.
Result | The success type of this parser. |
Parser | A parser with no result. |
Public Types | |
using | result_type = Result |
Public Member Functions | |
convert_const (Parser &&, Result &&) | |
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_const< Parser, Result >::result_type = Result |
fcppt::parse::convert_const< Parser, Result >::convert_const | ( | Parser && | , |
Result && | ) |
|
nodiscard |