Iros
 
Loading...
Searching...
No Matches
template_for.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/meta/algorithm.h"
5#include "di/types/prelude.h"
6
7namespace di::function {
8template<size_t count, typename F>
9constexpr void template_for(F&& function) {
10 (void) []<size_t... indices>(meta::ListV<indices...>, F & function) {
12 }
14}
15}
Definition as_bool.h:8
constexpr void template_for(F &&function)
Definition template_for.h:9
constexpr auto invoke
Definition invoke.h:100
MakeIntegerSequence< usize, count > MakeIndexSequence
Definition algorithm.h:285
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
Definition core.h:8