Is there a way to intersect/diff a std::map and a std::set?
- by Jack
I'm wondering if there a way to intersect or make the differences between two structures defined as std::set<MyData*> and std::map<MyData*, MyValue> with standard algorithms (like std::set_intersect)
The problem is that I need to compute the difference between the set and the keyset of the map but I would like to avoid reallocating it…