The AddValue class defines function objects that add a value to each element that is passed to the
constructor. See Section 6.10.1, page 237, for more details about this example.
Note also that you can do the same by using the transform() algorithm (see Section 11.6.3,
page 563) in the following way