score
Home
Classes
Namespaces
Files
ForEach.hpp
1
#pragma once
2
#include <ossia/detail/ssize.hpp>
3
10
template
<
typename
Array,
typename
F>
11
void
Foreach(Array&& arr, F fun)
12
{
13
const
int
n = std::ssize(arr);
14
for
(
int
i = 0; i < n; ++i)
15
{
16
fun(arr.at(i));
17
}
18
}