First page Back Continue Last page Graphics
Program Notes cont.
The second call of for_each uses the same functionality to add the value of the first element to each element. It initializes a temporary function object of type AddValue with the first element of the collection AddValue(*coll.begin( ) )
- after adding first element:
- 22 23 24 25 26 27 28 29 30