Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

remove duplicates from vector c++

sort( vec.begin(), vec.end() );
vec.erase( unique( vec.begin(), vec.end() ), vec.end() );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #vector
ADD COMMENT
Topic
Name
8+9 =