arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::policy::nearest_mode_like< ParentsTuple > Class Template Reference

#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 >
 

Detailed Description

template<typename ParentsTuple>
class arg_router::policy::nearest_mode_like< ParentsTuple >

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.

Template Parameters
ParentsTupleParent node type list in ascending ancestry order

Definition at line 207 of file policy.hpp.

Member Typedef Documentation

◆ index

template<typename ParentsTuple >
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.

◆ type

template<typename ParentsTuple >
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.


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