accessing values in a Map container, then try to match them

Posted by wilson88 on Stack Overflow See other posts from Stack Overflow or by wilson88
Published on 2010-05-16T03:37:00Z Indexed on 2010/05/16 9:50 UTC
Read the original article Hit count: 269

Filed under:

Trying to compare the prices of the bids in the two maps.Sellers map and the buyers map. Conditions for comparison. 1) One bid is A and the other is B 2) Price of B i greater than price of A.

I then copy the matched bids to a container called matched.I am not sure how to do the match of maps.

 map<int, Bid*> bidtable/Before matching
 map<int, Bid*> matched
 map<int, Bid*> unmatched

© Stack Overflow or respective owner

Related posts about c++