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

#include <arg_router/policy/router.hpp>

Public Types

using callable_type = Fn
 

Public Member Functions

constexpr router (Fn f) noexcept
 
template<typename... Args>
void routing_phase (Args &&... args) const
 

Detailed Description

template<typename Fn>
class arg_router::policy::router< Fn >

Provides a Callable that is executed on a successful parse.

Template Parameters
FnCallable function object type

Definition at line 19 of file router.hpp.

Member Typedef Documentation

◆ callable_type

template<typename Fn >
using arg_router::policy::router< Fn >::callable_type = Fn

Callable function object type alias.

Definition at line 23 of file router.hpp.

Constructor & Destructor Documentation

◆ router()

template<typename Fn >
constexpr arg_router::policy::router< Fn >::router ( Fn  f)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
fCallable that is executed on a successful parse

Definition at line 29 of file router.hpp.

Member Function Documentation

◆ routing_phase()

template<typename Fn >
template<typename... Args>
void arg_router::policy::router< Fn >::routing_phase ( Args &&...  args) const
inline

Executes the result of the parsed command line arguments.

Template Parameters
ArgsArgument types, must be implicitly convertible to the types in callable_args_type, in the order and number specified by callable_args
Parameters
argsArgument values

Definition at line 38 of file router.hpp.


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