arg_router
1.4.0
C++ command line argument parsing and routing
|
#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 |
Provides a Callable that is executed on a successful parse.
Fn | Callable function object type |
Definition at line 19 of file router.hpp.
using arg_router::policy::router< Fn >::callable_type = Fn |
Callable function object type alias.
Definition at line 23 of file router.hpp.
|
inlineexplicitconstexprnoexcept |
Constructor.
f | Callable that is executed on a successful parse |
Definition at line 29 of file router.hpp.
|
inline |
Executes the result of the parsed command line arguments.
Args | Argument types, must be implicitly convertible to the types in callable_args_type, in the order and number specified by callable_args |
args | Argument values |
Definition at line 38 of file router.hpp.