7 #include "arg_router/exception.hpp"
8 #include "arg_router/policy/policy.hpp"
18 template <
typename Fn>
29 constexpr
explicit router(Fn f) noexcept : f_{std::move(f)} {}
37 template <
typename... Args>
40 f_(std::forward<Args>(args)...);
47 template <
typename Fn>
48 struct is_policy<router<Fn>> : std::true_type {
void routing_phase(Args &&... args) const
constexpr router(Fn f) noexcept