| 700 | // Applies a function/functor to each element in the container. |
| 701 | template <class Container, typename Functor> |
| 702 | void ForEach(const Container& c, Functor functor) { |
| 703 | std::for_each(c.begin(), c.end(), functor); |
| 704 | } |
| 705 | |
| 706 | // Returns the i-th element of the vector, or default_value if i is not |
| 707 | // in range [0, v.size()). |
no test coverage detected