Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54358

BSONElement should support destructuring assignment using tuple protocol

    XMLWordPrintableJSON

Details

    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: