|
|
|
|
|
by cyber_kinetist
1364 days ago
|
|
Why should I do this, when I can just write: for (int i = 0; i < nums.size(); i++) {
nums[i] = rng();
}
Simple, easy to understand, actually compiles to efficient code even in Debug mode, don't need to include <algorithm> header which includes 10000+ lines of STL code which bloats compile times, etc. |
|