auto end=pointer; while(beginning!=end){ duplicate=0; next=beginning+1; while(next!=end){ if(function(*next)==function(*beginning)){ duplicate++; } next++; } if(duplicate>0) end=std::remove(beginning,end,function(*next)); beginning++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)