std::for_each <algorithm> and <list>

I was viewing containers chart at http://www.cplusplus.com/reference/stl/ and did not see method for_each.

I know vector is able to use this good, but I have had bad luck with list. I did not see for_each on http://www.cplusplus.com/reference/stl/ for even vector.

Any ideas for me?
std::for_each() is found in the algorithm library.

http://www.cplusplus.com/reference/algorithm/
http://www.cplusplus.com/reference/algorithm/for_each/

Algorithms such as std::for_each() are external to containers such as std::vector.
I tried for_each on list alone and it worked, sorry.

The other code I was using I tried to change from vector to list and it failed for some reason.

(#includes were there)

I will track down problem.

Sorry my English is okay or good but technical English not so much.
Topic archived. No new replies allowed.