I need to get the intersection of two vectors such that:
vector<int> a{1 2 3 4 5 6 7 8};
vector<int> b{2 4 6 8 10 12};
result should be:
vector<int> c{2 4 6 8}
How can i do this?
I need to get the intersection of two vectors such that:
vector<int> a{1 2 3 4 5 6 7 8};
vector<int> b{2 4 6 8 10 12};
result should be:
vector<int> c{2 4 6 8}
How can i do this?