13 template<
typename R,
usize index,
typename F,
typename... Args>
24 template<
typename R, usize max_index>
26 template<
typename F,
typename... Args>
29 return Array<R (*)(F&&, Args&&...), max_index> { (
34 return function_table[index](di::forward<F>(
function), di::forward<Args>(args)...);
39template<
typename R, usize max_index>
40requires(max_index > 0)
#define DI_ASSERT(...)
Definition assert_bool.h:7
concept F
Definition zip_transform.h:12
Definition bind_back.h:16
constexpr auto invoke
Definition invoke.h:100
constexpr auto index_dispatch
Definition index_dispatch.h:41
size_t usize
Definition integers.h:33
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
Definition index_dispatch.h:14
static constexpr auto do_call(F &&function, Args &&... args) -> R
Definition index_dispatch.h:15
Definition index_dispatch.h:25
static constexpr auto operator()(usize index, F &&function, Args &&... args) -> R
Definition index_dispatch.h:27
Definition span_fixed_size.h:37