d07 ex01 ok

This commit is contained in:
hugogogo
2022-03-10 19:12:00 +01:00
parent 3433fafd87
commit a38d7184e3
7 changed files with 198 additions and 0 deletions

11
d07/ex01/headers/Iter.hpp Normal file
View File

@@ -0,0 +1,11 @@
#ifndef ITER_HPP
# define ITER_HPP
template< typename T, typename F >
void Iter(T *arr, size_t len, F & f)
{
for (size_t i = 0; i < len; i++)
f(arr[i]);
}
#endif