DEV Community

Discussion on: for_each: Apply a function to a range of elements in C++

Collapse
 
pgradot profile image
Pierre Gradot

You can either include bits/stdc++.h

NO, you can't.

See stackoverflow.com/questions/318160...

Collapse
 
satyam1203 profile image
Satyam Lachhwani

Hi, I used to think that it is slow that's why some people don't recommend it. I didn't know that it may not work for some.

I'll explore on that.