Учитывая, что у меня есть две карты STL, скажите:
map<int, double> A;
map<int, double> B;
Я хотел бы получить пересечение двух карт, что-то вроде формы:
map<int, pair<double,double> > C;
Если ключи являются значениями как в A, так и в B, а значение представляет собой пару значений из A и B соответственно. Есть ли способ STL-подобных способов?