4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::parse::not_< Parser > Class Template Reference

Detailed Description

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

Negates the result of a parser, returns nothing.

If the parser p returns a value, then not_{p} fails. Otherwise, if p fails, then not_{p} returns fcppt::unit.

Template Parameters
ParserA parser that returns nothing.
Inheritance diagram for fcppt::parse::not_< Parser >:
fcppt::parse::tag

Public Types

using result_type = fcppt::unit
 

Public Member Functions

 not_ (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::not_< Parser >::result_type = fcppt::unit

Constructor & Destructor Documentation

◆ not_()

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

Member Function Documentation

◆ parse()

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