GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
algorithms.h
1 #ifndef ALGORITHMS_H_
2 #define ALGORITHMS_H_
3 
4 template<typename Iterator, typename Operation, typename Pred> void
5 for_each_if(Iterator begin, Iterator end, Operation op, Pred p ) {
6  for(; begin != end; begin++) {
7  if (p(*begin)) {
8  op(*begin);
9  }
10  }
11 }
12 
13 
14 #endif