Search:
Forum
General C++ Programming
std::for_each <algorithm> and <list>
std::for_each <algorithm> and <list>
Jan 22, 2014 at 12:24pm UTC
norp laslo
(2)
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?
Jan 22, 2014 at 12:54pm UTC
Catfish666
(666)
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
.
Jan 22, 2014 at 11:59pm UTC
norp laslo
(2)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs