Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25919

Reverse iterators in Qt containers

    XMLWordPrintable

Details

    • ffedd0cf640ca75602bdb8151256636d22de413d (QVector), f7b5f0cfd292baad7a18f1b83567133756ff1d2c (QList), cc164f9ac73cd44a0ab082af78dccde8057154dc (QVarLengthArray)

    Description

      Hello.

      As you know, there are begin and end methods (which return reverse_iterator and const_reverse_iterator objects) in QString and Qt container classes that provide STL compatibility. But Qt seems to be missing reverse iterators. Think of std::string::rbegin and std::string::rend methods.

      This is a powerful feature that I used to use a lot, and I'm pretty sure that I'm not the only one

      It would be really nice to introduce reverse iterators into Qt containers (wherever it is possible) and QString to increase flexibility and amount of possibilities to use the STL algorithms.

      Thanks in advance

      Attachments

        For Gerrit Dashboard: QTBUG-25919
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            talis George Kashtanov
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            10 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated: