is there a Python range() function equivalent in C++? So for example if I type range(5), it should return an array of {0, 1, 2, 3, 4}.
My goal is to initialize an array based on a number, like
uint32_t newArray[num_size] = range(num_size);
is there a Python range() function equivalent in C++? So for example if I type range(5), it should return an array of {0, 1, 2, 3, 4}.
My goal is to initialize an array based on a number, like
uint32_t newArray[num_size] = range(num_size);