
14 Dec
2009
14 Dec
'09
2:36 p.m.
Hello,
On Sun, Dec 13, 2009 at 9:23 AM, Bosko Markovic
When searching bimap using find method what is the value of returned iterator if nothing matches search query?
Example code: BimapDWORDVariant::right_map::const_iterator right_iter = bm.right.find(sSyncMsg);
bm.right mimics a std::map, and this includes the way find works. If finds fails it will return bm.right.end(). It will become clear if you look at this code: BimapDWORDVariant::right_map & rmap = bm.right; if( rmap.find(sSyncMsg) == rmap.end() ) { ... } Best regards Matias