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

Reverse iterators in Qt containers

XMLWordPrintable

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

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated: