BSONElement should support destructuring assignment using tuple protocol

XMLWordPrintableJSON

    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: