GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Pages
src
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
Generated on Sun Jun 1 2014 21:59:10 for GraphTool by
1.8.6