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

StringData should have a const_iterator type and begin() and end() methods.

    • Fully Compatible

      This would make it compatible with various standard algorithms and programming practices already common in the codebase.

      Proposed implementation:

      class StringData {
      public:
      typedef const char* const_iterator;
      ...
      const_iterator begin()

      { return rawData(); }

      const_iterator end()

      { return rawData() + size(); }

      ...
      };

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: