Quote:
I'm not shure if I got it:
for_each(v2.begin(), v2.end(), cout << *_1 << " ");
-> _1 is "used to create objects with operator() defined [...] that it takes one argument and straightly returns that value."
So it takes what? an interator? and returns what? also an interator? what exactly happens in this line?
I doesn't see the differnce to this one:
for_each(v2.begin(), v2.end(), delete _1 );
if *_i in the first line returns a string, than _i is returning a string*. ok that seems perfekt, because delete wants exactly that: an string*.
on what point is my brain going out of order?
ok first up, damn you for asking this, 'cos now I have to think about it and anything lambda/bind related makes my brain hurt!