I have a deque-like container that I want to give segmented iterators.
The implementation uses pool allocation where iterators use indices instead of pointers.
The standard iterator type has a reference to the pool and an index.
The local_iterator type, which is used within a pool range, just needs
an index to operate.
But this means that a local iterator from one container instance
could be used as iterator to another. Does this by itself invalidate
my design?
Eg, it means operator== can only test the index, it can't detect container instance.
So it could claim that two iterators from different containers are identical.
Is this immoral? Do I have to add more data to the local_iterator to make it better behaved?
Thanks
homsan