Loading...
Searching...
No Matches
ForEach.hpp
1#pragma once
2#include <ossia/detail/ssize.hpp>
3
10template <typename Array, typename F>
11void 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}