Hi,
I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container.
replace_if(V2.begin(),V2.end(), //range
bind2nd(less<int>() ,5)); //replace criterion