1
0

」 feat: finished ex01

This commit is contained in:
2025-04-09 15:28:52 +02:00
parent a432c8defd
commit 02fe2e7791
3 changed files with 17 additions and 12 deletions

View File

@ -6,13 +6,13 @@
/* 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 */
/* Updated: 2025/04/09 15:23:21 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
template<typename T> void iter(T *arr, int len, void(*func)(T &)) {
template<typename T> void iter(T *arr, int len, void(func)(T &)) {
for (int i = 0; i< len; i++) {
func(arr[i]);
}