So we have set<string> a and set<string> b and we want to get std::set<string> c which would contain items that would represent a - b (meaning what is left from a if we remove from it all items from b, if b contains more than a or items not present in a we want to keep them alike such simple math with numbers: 5-6 = 0 while 3-2 = 1)
So we have set<string> a and set<string> b and we want to get std::set<string>
Share
I think you want
std::set_difference()from<algorithm>.