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

QVarLengthArray is missing constructor with sentinel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.8.1
    • None

    Description

      template <typename InputIterator, if_input_iterator<InputIterator> = true>
      inline QVarLengthArray(InputIterator first, InputIterator last)
          : QVarLengthArray()
      {
          QtPrivate::reserveIfForwardIterator(this, first, last);
          std::copy(first, last, std::back_inserter(*this));
      }
      

      Because it does not support sentinels, it does not work well with std::ranges.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes