Skip to content
Snippets Groups Projects
Commit 8005cada authored by Vasileios Karakasis's avatar Vasileios Karakasis
Browse files

Custom distance() function.

This new `util:distance()` operating on an iterator `I` and a sentinel
`S`. It reverts to `std::distance()` if `I==S`, otherwise it increments
iterator sequentially until it reaches the sentinel and returns the number of
total increments.

Also removed tests for ranges with `l>r`.
parent 2f65c579
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment