summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonelement.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-12-19 13:23:11 -0500
committerMathias Stearn <mathias@10gen.com>2018-07-23 16:56:06 -0400
commite64cf49efa5410aafdbf1a837070563abcf41fb2 (patch)
tree284efc541391aab2982d5dcda1f6094689e2afb6 /src/mongo/bson/bsonelement.h
parentdeb1161a6c3feb0497c9af4c7b72b01c6d4bdb97 (diff)
downloadmongo-e64cf49efa5410aafdbf1a837070563abcf41fb2.tar.gz
SERVER-32302 Introduce BSONObjStlIterator as a proper stl-style iterator
(cherry picked from commit 1497899f237dd60ad7313913c38c3f07fe168f2b)
Diffstat (limited to 'src/mongo/bson/bsonelement.h')
-rw-r--r--src/mongo/bson/bsonelement.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h
index 0c84387f2ad..7c427f38004 100644
--- a/src/mongo/bson/bsonelement.h
+++ b/src/mongo/bson/bsonelement.h
@@ -702,6 +702,7 @@ private:
mutable int totalSize; /* caches the computed size */
friend class BSONObjIterator;
+ friend class BSONObjStlIterator;
friend class BSONObj;
const BSONElement& chk(BSONType t) const {
if (t != type()) {