summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/element.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-04-27 15:58:02 -0400
committerDavid Storch <david.storch@10gen.com>2016-04-29 10:57:55 -0400
commit6bd161db45bf3d08bffa0611fdfabbd4c597faff (patch)
treef62d9aa36370345c218305ad8ed0a48e4736255f /src/mongo/bson/mutable/element.h
parente1ca46b045b85aaf546eb831448712db0de69b73 (diff)
downloadmongo-6bd161db45bf3d08bffa0611fdfabbd4c597faff.tar.gz
SERVER-23689 make $pull respect the collation
Diffstat (limited to 'src/mongo/bson/mutable/element.h')
-rw-r--r--src/mongo/bson/mutable/element.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/bson/mutable/element.h b/src/mongo/bson/mutable/element.h
index 2c3a54c348b..ee0d6de3d45 100644
--- a/src/mongo/bson/mutable/element.h
+++ b/src/mongo/bson/mutable/element.h
@@ -350,7 +350,9 @@ public:
* Returns 0 if this == other either tautologically, or according to woCompare.
* Returns 1 if this > other according to BSONElement::woCompare
*/
- int compareWithElement(const ConstElement& other, bool considerFieldName = true) const;
+ int compareWithElement(const ConstElement& other,
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
/** Compare this Element with BSONElement 'other'. You should not call this on the root
* Element of the Document because the root Element does not have a field name. Use
@@ -360,7 +362,9 @@ public:
* Returns 0 if this == other either tautologically, or according to woCompare.
* Returns 1 if this > other according to BSONElement::woCompare
*/
- int compareWithBSONElement(const BSONElement& other, bool considerFieldName = true) const;
+ int compareWithBSONElement(const BSONElement& other,
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
/** Compare this Element, which must be an Object or an Array, with 'other'.
*
@@ -368,7 +372,9 @@ public:
* Returns 0 if this object == other either tautologically, or according to woCompare.
* Returns 1 if this object > other according to BSONElement::woCompare
*/
- int compareWithBSONObj(const BSONObj& other, bool considerFieldName = true) const;
+ int compareWithBSONObj(const BSONObj& other,
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
//