Re: PING: Lambda Documentation Problem

[Jaakko Jarvi]
for_each is the only one that takes a 'free-form' function object.
Yes, as I said, it is "special".
Because for_each() does not do the modifying, the /functor/ does the modifying. Contrast replace(), which does the modifying itself.
Do you know what Bjarne is referring to with the 'recent standards resolution'?
I have E-mailed him asking for a clarification.
The sgi STL documentation (predecessor of what is currently in the standard)
... is wrong wrt the final Standard.
This must be the initial reason why for_each is in the category of non-modifying sequences.
It may have been that this was the intent pre-Standardization.
I don't believe that a DR is necessary given the phrasing in TC++PL, which is reasonably authoritative (though lacking Standard force). Stephan T. Lavavej

"Stephan T. Lavavej" <stl@caltech.edu> writes:
They're not in the same domain. What *any* book other than the standard says has no bearing on whether a DR is appropriate. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Stephan T. Lavavej