what is difference b/w - for(auto &i : v) and for(auto &&i : v) in cpp ?
I tried to figure it out but I was getting all results simular only so I am just curious to know that both are same or have any difference..
what is difference b/w - for(auto &i : v) and for(auto &&i : v) in cpp ?
I tried to figure it out but I was getting all results simular only so I am just curious to know that both are same or have any difference..