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

Detailed Description

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

Builds the complement of a fcppt::parse::basic_char_set parser.

Given the character set S, let p = fcppt::parse::basic_char_set{S}. If the next input character is c and c is not in S, then complement{p} returns c. Otherwise, complement{p} returns an error.

Template Parameters
ParserMust be an fcppt::parse::basic_char_set
Inheritance diagram for fcppt::parse::complement< Parser >:
fcppt::parse::tag

Public Types

using result_type = fcppt::parse::result_of<Parser>
 

Public Member Functions

 complement (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::complement< Parser >::result_type = fcppt::parse::result_of<Parser>

Constructor & Destructor Documentation

◆ complement()

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

Member Function Documentation

◆ parse()

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