Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp convert vector to set

set<int> s( vec.begin(), vec.end() );
vec.assign( s.begin(), s.end() );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cpp #convert #vector #set
ADD COMMENT
Topic
Name
7+7 =