summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/const_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/const_element.h
parente1ca46b045b85aaf546eb831448712db0de69b73 (diff)
downloadmongo-6bd161db45bf3d08bffa0611fdfabbd4c597faff.tar.gz
SERVER-23689 make $pull respect the collation
Diffstat (limited to 'src/mongo/bson/mutable/const_element.h')
-rw-r--r--src/mongo/bson/mutable/const_element.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mongo/bson/mutable/const_element.h b/src/mongo/bson/mutable/const_element.h
index 80ad1aac724..1997de64a32 100644
--- a/src/mongo/bson/mutable/const_element.h
+++ b/src/mongo/bson/mutable/const_element.h
@@ -88,12 +88,17 @@ public:
inline bool isValueMaxKey() const;
inline SafeNum getValueSafeNum() const;
- inline int compareWithElement(const ConstElement& other, bool considerFieldName = true) const;
+ inline int compareWithElement(const ConstElement& other,
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
inline int compareWithBSONElement(const BSONElement& other,
- bool considerFieldName = true) const;
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
- inline int compareWithBSONObj(const BSONObj& other, bool considerFieldName = true) const;
+ inline int compareWithBSONObj(const BSONObj& other,
+ bool considerFieldName = true,
+ StringData::ComparatorInterface* comparator = nullptr) const;
inline void writeTo(BSONObjBuilder* builder) const;
inline void writeArrayTo(BSONArrayBuilder* builder) const;