I was wondering is there any function to compare 2 string vectors to return the number of different(or the same) elements? Or i have to iterate over both of them and test it
Have a look at set_difference() and set_intersection(). In both cases you need to have your containers sorted beforehand.