Files
42_INT_09_piscine_cpp/d07/ex02/headers/Fill.hpp
2022-03-11 01:54:16 +01:00

16 lines
239 B
C++

#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