-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Fully Compatible
Then we could write for (auto&& [k, v] : someBsonObj) like you can for other kv-pair maps in C++. It is slightly weird that the second element of a BSONElement is the element itself, but I think it would work nicely in practice.