arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/policy.hpp>
Public Types | |
using | index = boost::mp11::mp_find_if< ParentsTuple, policy_finder > |
using | type = boost::mp11::mp_eval_if_c< index::value==std::tuple_size_v< ParentsTuple >, void, boost::mp11::mp_at, ParentsTuple, index > |
Searches up through ParentsTuple and returns the first mode-like type hit.
A 'mode-like' type is one defined as owning a routing phase policy.
ParentsTuple | Parent node type list in ascending ancestry order |
Definition at line 207 of file policy.hpp.
using arg_router::policy::nearest_mode_like< ParentsTuple >::index = boost::mp11::mp_find_if<ParentsTuple, policy_finder> |
Index of mode, or equal to the size of ParentsTuple if one was not found.
Definition at line 221 of file policy.hpp.
using arg_router::policy::nearest_mode_like< ParentsTuple >::type = boost::mp11::mp_eval_if_c<index::value == std::tuple_size_v<ParentsTuple>, void, boost::mp11::mp_at, ParentsTuple, index> |
The discovered mode-like type, or void if one was not found.
Definition at line 224 of file policy.hpp.