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

Detailed Description

template<typename Parser>
class fcppt::parse::ignore< Parser >

Ignores the result of a parser.

If the parser p returns s on success, then ignore{s} returns fcppt::unit. Errors returned by p remain unchanged.

Inheritance diagram for fcppt::parse::ignore< Parser >:
fcppt::parse::tag

Public Types

using result_type = fcppt::unit
 

Public Member Functions

 ignore (Parser &&)
 
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 Parser >
using fcppt::parse::ignore< Parser >::result_type = fcppt::unit

Constructor & Destructor Documentation

◆ ignore()

template<typename Parser >
fcppt::parse::ignore< Parser >::ignore ( Parser &&  )
explicit

Member Function Documentation

◆ parse()

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