How to adapt a non-STL iterator The solution proposed here will not scale in general, but it is still nice for limited usage scenarios.…