1 2 3 4 5
template< typename T> void init(T first, T last) { for( ; first!=last; ++first) *first=0; // инициализация нулем }