You could also use SGVector<int32_t>::range_fill() to do this. Again, just a suggestion ;-) Keep it this way if you prefer.