From c6589b59518855a6e6843be9b235b894dd98171b Mon Sep 17 00:00:00 2001 From: mac Date: Mon, 12 Jun 2000 20:08:01 +0000 Subject: [PATCH] Added a range member function to evaluate an iterator range --- eo/src/eoEvalFunc.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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