d07 ex02 a peu pres ok

This commit is contained in:
hugogogo
2022-03-11 01:54:16 +01:00
parent a38d7184e3
commit 9197577889
10 changed files with 379 additions and 1 deletions

11
d07/ex02/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