for(・・・){
int * p = 0;
unique_ptr<int, DelAry> guard(p = new int[size]);
}