| 47 | /// Steps thru the elements of an array calling detete for each. |
| 48 | template <class Iterator, class Functor> |
| 49 | void for_each(Iterator first, Iterator last, Functor func) |
| 50 | { |
| 51 | for (; first != last; first++) |
| 52 | func(*first); |
| 53 | } |
| 54 | |
| 55 | /// Functor for deleting a pointer. |
| 56 | /// @see for_each |
no outgoing calls