>>681
#include <iostream>
template <int size>
void func(int (&buf)[size]){
    for(int i=0;i<size;i++){
        std::cout << buf[i] << std::endl;
    }
}
int main(){
    int buf[]={0,1,2,3,4,5,6,7,8,9};
    func(buf);
    return 0;
}
templateスレだと既出っぽ