| 681 | // Applies a function/functor to each element in the container. |
| 682 | template <class Container, typename Functor> |
| 683 | void ForEach(const Container& c, Functor functor) { |
| 684 | std::for_each(c.begin(), c.end(), functor); |
| 685 | } |
| 686 | |
| 687 | // Returns the i-th element of the vector, or default_value if i is not |
| 688 | // in range [0, v.size()). |
no test coverage detected