1
0

🗑️」 clean: cleaned project.

This commit is contained in:
2025-04-09 15:21:27 +02:00
parent 9035e8da97
commit a432c8defd
8 changed files with 127 additions and 15 deletions

19
ex01/iter.hpp Normal file
View File

@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* iter.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/09 14:56:23 by adjoly #+# #+# */
/* Updated: 2025/04/09 15:21:01 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
template<typename T> void iter(T *arr, int len, void(*func)(T &)) {
for (int i = 0; i< len; i++) {
func(arr[i]);
}
}