Can a function return an interator to main()
....and if so what is the function defination then to be ?
I just want my self written function (sort) which sorts lists to return me a pointer after its execution so that i can perform tasks on the sorted list IN THE FUNCTION MAIN(); (dont ask why...i just want to cause i cant control my urge to do it otherwise which stems out of the fact that i cannot do it as of now)
so i wondered that since iterators are kind of pointers can i simply return them ?
Thanks all..