Y
Hacker News
new
|
ask
|
show
|
jobs
by
marcianx
2684 days ago
I'm far more inclined toward
img.assign(w*h, color);
myself.
1 comments
saagarjha
2684 days ago
Normally 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.
link