Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

vector unique in c++

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