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

QVarLengthArray is missing constructor with sentinel

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes