RESTinio
Loading...
Searching...
No Matches
Public Member Functions | List of all members
restinio::easy_parser::impl::symbol_producer_template_t< Predicate > Class Template Reference

A template for producer of charachers that satisfy some predicate. More...

#include <easy_parser.hpp>

Inheritance diagram for restinio::easy_parser::impl::symbol_producer_template_t< Predicate >:
restinio::easy_parser::impl::producer_tag< char >

Public Member Functions

template<typename... Args>
 symbol_producer_template_t (Args &&... args)
 
expected_t< char, parse_error_ttry_parse (source_t &from) const noexcept
 

Additional Inherited Members

- Public Types inherited from restinio::easy_parser::impl::producer_tag< char >
using result_type
 
- Static Public Attributes inherited from restinio::easy_parser::impl::producer_tag< char >
static constexpr entity_type_t entity_type
 

Detailed Description

template<typename Predicate>
class restinio::easy_parser::impl::symbol_producer_template_t< Predicate >

A template for producer of charachers that satisfy some predicate.

In the case of success returns the expected character.

Template Parameters
Predicatethe type of predicate to check extracted symbol.
Since
v.0.6.1

Definition at line 2131 of file easy_parser.hpp.

Constructor & Destructor Documentation

◆ symbol_producer_template_t()

template<typename Predicate >
template<typename... Args>
restinio::easy_parser::impl::symbol_producer_template_t< Predicate >::symbol_producer_template_t ( Args &&... args)
inline

Definition at line 2137 of file easy_parser.hpp.

Member Function Documentation

◆ try_parse()

template<typename Predicate >
expected_t< char, parse_error_t > restinio::easy_parser::impl::symbol_producer_template_t< Predicate >::try_parse ( source_t & from) const
inlinenoexcept

Definition at line 2143 of file easy_parser.hpp.


The documentation for this class was generated from the following file: