|
-
February 10th, 2009, 08:47 AM
#3
Re: std::map.find
 Originally Posted by laserlight
No, std::map's find() makes use of operator< instead, or the given predicate that is used to compare the keys to put them in the correct order. That said, if you are going to provide operator< it probably makes sense to provide operator== as well.
Hi Laserlight,
Why do you say that he should provide operator== as well? Because he may use STL algorithms?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|