*Instant* Container Access
Imagine I have 3 separate containers (for example, 3 lists) that are identical, point to the same exact objects, but are sorted on different criteria.
Is there a way, or design scheme that would allow me to essentially return an iterator-like pointer by simply calling some "get_iterator()" method on the object?
Example: (X is the same object, but has a different position in each container)
[] [] [] [] [X] [] [] get iterator to x here
[][X][][][][][] and here
[][][][][][][X] and here
I'm looking for a way to do this, without having to hand-code my own custom container, unless there is no other way.