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

15
d07/ex02/headers/Fill.hpp Normal file
View File

@@ -0,0 +1,15 @@
#ifndef FILL_HPP
# define FILL_HPP
# include <iostream>
# include <string>
# include "Iter.hpp"
template< typename T, typename U >
void Fill(T & arr, size_t len, U const & e) {
for (size_t i = 0; i < len; i++)
arr[i] = e;
}
#endif