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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible

      Description

      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(); }

      ...
      };

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: