Concept to determine if there's a parse function for a type.

Synopsis

Declared in <mrdocs/Support/Parse.hpp>

template<class T>
concept HasParse = requires(
    char const* first,
    char const* last,
    T& value)
{
    { parse(first, last, value) } ‐> std::same_as<ParseResult>;
};

Description

This concept checks if a type T has a parse function with the signature:

ParseResult
parse(
    char const* first,
    char const* last,
    T& value);

Created with MrDocs