Iros
 
Loading...
Searching...
No Matches
di::parser::detail::OptionalParser< Parser > Class Template Reference

#include <di/parser/combinator/optional.h>

Inheritance diagram for di::parser::detail::OptionalParser< Parser >:
[legend]

Public Member Functions

template<typename P>
constexpr OptionalParser (InPlace, P &&parser)
 
template<concepts::ParserContext Context, typename Value = meta::ParserValue<Context, Parser>>
requires (concepts::Parser<Parser, Context>)
constexpr auto parse (Context &context) const -> meta::ParserContextResult< Optional< Value >, Context >
 

Constructor & Destructor Documentation

◆ OptionalParser()

template<typename Parser>
template<typename P>
di::parser::detail::OptionalParser< Parser >::OptionalParser ( InPlace ,
P && parser )
inlineexplicitconstexpr

Member Function Documentation

◆ parse()

template<typename Parser>
template<concepts::ParserContext Context, typename Value = meta::ParserValue<Context, Parser>>
requires (concepts::Parser<Parser, Context>)
auto di::parser::detail::OptionalParser< Parser >::parse ( Context & context) const -> meta::ParserContextResult<Optional<Value>, Context>
inlineconstexpr

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