missing bsoncxx::document::view::empty

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 0.2.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It would be nice to have a function that checks if the underlying document is empty.

      Without that, the calling code has to compare the returned length() to 5 which is ugly.

      I've implemented it, will submit a PR soon

            Assignee:
            Adam Midvidy (Inactive)
            Reporter:
            Yuval Hager
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: