I have declared this STL multiset:
multiset
multiset playingNotes;
and my comparator is:
Use std::find_if.
int value = 60; auto iteratorItemFound = std::find_if(std::begin(playingNotes), std::end(playingNotes), [value](const IMidiMsgExt& msg) { return msg.mNote == value; });