d07 ex01 ok
This commit is contained in:
11
d07/ex01/headers/Iter.hpp
Normal file
11
d07/ex01/headers/Iter.hpp
Normal 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
|
||||
Reference in New Issue
Block a user