582484 Algorithm Libraries
Exercise 5
- wed 22.2.2006 10-12 | B119
- wed 22.2.2006 16-18 | B119
- Compute a simple checksum over vector<int> as an
exclusive-or (operator^) over all the elements.
Use accumulate and
- Your own functor.
- Boost::lambda.
- An expanded version of the simple list example from lectures
is available here. As it is, list nodes are never deleted.
Modify the code to properly delete of the nodes.
- Without any smart pointers.
- Using boost::shared_ptr.