Skip to content
Snippets Groups Projects

Add sentinel support to IteratorRange

Merged Carsten Gräser requested to merge feature/iteratorrange-with-sentinel into master
All threads resolved!

As of C++20, range based for supports that the end iterator has a different type. This allows to implement so called sentinels tagging the end. This can make it simpler and more efficient to implement ranges where it's not straight forward to get the end in O(1) or where comparing real iterators is expensive. To support this approach, this adds support for using a different type for the end iterator to Dune::IteratorRange.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Carsten Gräser added 2 commits

    added 2 commits

    • 21d79b95 - Add sentinel support to IteratorRange
    • 2dcd75e5 - Adjust private varaible name to style guide

    Compare with previous version

  • Carsten Gräser resolved all threads

    resolved all threads

  • Santiago Ospina De Los Ríos approved this merge request

    approved this merge request

  • Carsten Gräser mentioned in commit bdafe9f5

    mentioned in commit bdafe9f5

  • Please register or sign in to reply
    Loading