7 #include "arg_router/parsing/token_type.hpp"
8 #include "arg_router/policy/policy.hpp"
11 #include <string_view>
44 template <
typename ValueType,
typename... Parents>
45 [[nodiscard]] constexpr ValueType
parse_phase(std::string_view token,
46 [[maybe_unused]]
const Parents&... parents)
const
48 return parser_(token);
55 template <
typename... Args>
56 struct is_policy<custom_parser<Args...>> : std::true_type {
constexpr custom_parser(parser_type p) noexcept
constexpr ValueType parse_phase(std::string_view token, [[maybe_unused]] const Parents &... parents) const
std::function< value_type(std::string_view)> parser_type