diff --git a/eo/src/eoEvalFunc.h b/eo/src/eoEvalFunc.h index 6ff28f2c..0f90532b 100644 --- a/eo/src/eoEvalFunc.h +++ b/eo/src/eoEvalFunc.h @@ -45,6 +45,15 @@ template struct eoEvalFunc { /// Effectively applies the evaluation function to an EO virtual void operator() ( EOT & _eo ) const = 0; + + template + void range(It begin, It end) const + { + for (;begin != end; ++begin) + { + operator()(*begin); + } + } }; #endif