3 ms·
I'm far more inclined toward img.assign(w*h, color); myself.
by marcianx 8y ago
I'm far more inclined toward
img.assign(w*h, color);
myself.
- saagarjha 8y agoNormally I choose the methods in <algorithm> because they take an ExecutionPolicy parameter, allowing me to make this code parallel if I wish, but both are valid.