Concept to check if a type is a parser.
More...
#include <parser.h>
template<typename T, typename Ctx>
{ T::parse_argument(ctx, value) } -> std::same_as<ParseResult>;
{ T::parse_option_flag(ctx, arg) } -> std::same_as<ParseResult>;
{ T::parse_option_value(ctx, arg, value) } -> std::same_as<ParseResult>;
{ T::parse_command(ctx, cmd) } -> std::same_as<ParseResult>;
}
Concept to check if a type is a parser.
Definition parser.h:34
Concept to check if a type is a parser.
- Template Parameters
-
T | The parser type. |
Ctx | The context type. |