Is there a way in C++ to construct a float array initializing it's values?
For example, i do:
float* new_arr = new float[dimension];
for(unsigned int i = 0; i < dimension; ++i) new_arr[i] = 0;
Is it possible to do the assignment during the contruction?