summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj_comparator_interface.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-24508 BSONElement::ComparatorInterfaceDavid Storch2016-09-021-131/+25
|
* SERVER-24508 delete BSONObjCmpDavid Storch2016-08-231-16/+29
| | | | Instead, use BSONObj::ComparatorInterface.
* SERVER-24508 BSONObj::ComparatorInterfaceDavid Storch2016-08-181-0/+195
BSONObj instances should now be compared via the comparator interface's evaluate() method. This preferred over using BSONObj::woCompare() directly. If the comparison doesn't require any database semantics (e.g. there is no collation), there is a global instance of the SimpleBSONObjComparator which should be used for BSONObj comparisons. If the comparison requires special semantics, then callers must instantiate their own comparator object.