I am using std::unordered_multimap, I want to use the value of element to find the key, which the element belongs to. But the member function find() can only use the key to get the value of the (first) element.
Maybe I am using wrong data structure to solve my problem. The problem is as following:
A man want to marry a person who is not coming from his family(relativities and marriages). So i would like to use the key to represents his family, every relation or marriage record belongs to the same family will store under that key. And the goal is to find a person who is not belongs to his family.