Hi everoby, I have the following design in one of my projects:
template<typename C> class B {
int numValue;
C inner;
}
template<typename C> class A {
vector<B<C>> container;
...
Iterator InsertItem(C item) {...}
}
What I want is a way to modify the existing vector iterator to return an Iterator which will return &inner on dereferencing instead of returning a reference to a B object. Hope it doesn't need a complete iterator class implementation.