What is the most efficient way to create a subset from 2 sets that contains values from both of them? Any C++ STL library can be used to solve this (without Boost library if possible):
Set A = {2, 3, 5, 7, 11, ...}
Set B = {1, 3, 5, 7, 9, 11, ...}
Subset should be = {3, 5, 7, 11, ...}