I have 3 iterators which belong to 3 vectors A, B and C. A function minn
is called with these 3 iterators which returns the iterator with minimum value. Now how can i know which vector does the returned iterator minit
belongs to?
code -
vector<int>::iterator a = A.begin(), b = B.begin(), c = C.begin();
auto minit = minn(a,b,c);