arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::tree_node< Params >::phase_finder< PolicyChecker, Args > Struct Template Reference

#include <arg_router/tree_node.hpp>

Public Types

using type = boost::mp11::mp_eval_if_c< boost::mp11::mp_find_if_q< policies_type, finder >::value==std::tuple_size_v< policies_type >, void, boost::mp11::mp_at, policies_type, boost::mp11::mp_find_if_q< policies_type, finder > >
 

Detailed Description

template<typename... Params>
template<template< typename... > typename PolicyChecker, typename... Args>
struct arg_router::tree_node< Params >::phase_finder< PolicyChecker, Args >

Finds a policy that the PolicyChecker predicate passes.

Template Parameters
PolicyCheckerPolicy predicate, use one of policy::has_*_phase_method
ArgsAuxiliary arguments to pass to PolicyChecker

Definition at line 78 of file tree_node.hpp.

Member Typedef Documentation

◆ type

template<typename... Params>
template<template< typename... > typename PolicyChecker, typename... Args>
using arg_router::tree_node< Params >::phase_finder< PolicyChecker, Args >::type = boost::mp11::mp_eval_if_c<boost::mp11::mp_find_if_q<policies_type, finder>::value == std::tuple_size_v<policies_type>, void, boost::mp11::mp_at, policies_type, boost::mp11::mp_find_if_q<policies_type, finder> >

The policy type that passes PolicyChecker, or void if one is not found.

Definition at line 82 of file tree_node.hpp.


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