Added a range member function to evaluate an iterator range

This commit is contained in:
mac 2000-06-12 20:08:01 +00:00
commit c6589b5951

View file

@ -45,6 +45,15 @@ template<class EOT> struct eoEvalFunc {
/// Effectively applies the evaluation function to an EO
virtual void operator() ( EOT & _eo ) const = 0;
template <class It>
void range(It begin, It end) const
{
for (;begin != end; ++begin)
{
operator()(*begin);
}
}
};
#endif