Skip to content
Snippets Groups Projects

[draft] Allow equality comparison of TransformedRangeIterator classes with same base iterator

Closed Carsten Gräser requested to merge feature/generalize-transformedrangeit-comp into master
  1. Jun 16, 2024
    • Carsten Gräser's avatar
      Allow equality comparison of TransformedRangeIterator classes with same base iterator · 30863d30
      Carsten Gräser authored
      So far comparision was only provided for identical `TransformedRangeIterator`
      type. This is generalized to allow equality/inequlity comparison of
      different types as long as the base iterator is the same. This is reasonable,
      since comparisons anyway rely on the base type only. The patch is needed
      if we want to allow to generate `TransformedRangeIterator`s only with
      lambdas, since each lambda has a different type.
      
      The latter functionality is tested and demonstrated in the respective test.
      We may later want to provide a public factory method for creating such
      iterators (which should probably stay in `Dune::Impl::` themselves).
      30863d30
Loading