Phenomenal article by Eric Niebler. Lately, I had to write a similar iterator and I was at first puzzled by the need of taking into account for the sentinel.…