diff options
Diffstat (limited to 'src/mongo/bson/mutable/document.h')
-rw-r--r-- | src/mongo/bson/mutable/document.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/bson/mutable/document.h b/src/mongo/bson/mutable/document.h index 1efd9e95729..cca50443311 100644 --- a/src/mongo/bson/mutable/document.h +++ b/src/mongo/bson/mutable/document.h @@ -277,10 +277,14 @@ public: // /** Compare this Document to 'other' with the semantics of BSONObj::woCompare. */ - inline int compareWith(const Document& other, bool considerFieldName = true) const; + inline int compareWith(const Document& other, + bool considerFieldName = true, + StringData::ComparatorInterface* comparator = nullptr) const; /** Compare this Document to 'other' with the semantics of BSONObj::woCompare. */ - inline int compareWithBSONObj(const BSONObj& other, bool considerFieldName = true) const; + inline int compareWithBSONObj(const BSONObj& other, + bool considerFieldName = true, + StringData::ComparatorInterface* comparator = nullptr) const; // |