d07 ex02 a peu pres ok
This commit is contained in:
15
d07/ex02/headers/Fill.hpp
Normal file
15
d07/ex02/headers/Fill.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user