12 #ifndef ZYPP_BASE_ALGORITHM_H
13 #define ZYPP_BASE_ALGORITHM_H
29 template <
class _Iterator,
class _Filter,
class _Function>
35 for ( _Iterator it = begin_r; it != end_r; ++it )
37 if ( filter_r( *it ) )
55 template <
class _Iterator,
class _Function>
60 for ( _Iterator it = begin_r; it != end_r; ++it )
72 #endif // ZYPP_BASE_ALGORITHM_H
int invokeOnEach(_Iterator begin_r, _Iterator end_r, _Filter filter_r, _Function fnc_r)
Iterate through [begin_r,end_r) and invoke fnc_r on each item that passes filter_r.