Answers for "how can i remove duplicates in a vector c++"

0

remove duplicates from vector c++

sort( vec.begin(), vec.end() );
vec.erase( unique( vec.begin(), vec.end() ), vec.end() );
Posted by: Guest on December-20-2020

Code answers related to "how can i remove duplicates in a vector c++"

Browse Popular Code Answers by Language