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

QVarLengthArray should expand to less code

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 6.3.0 Alpha, 6.3
    • 5.9.9, 5.12.8, 5.13.2, 5.14.2, 5.15.0, 6.0.4, 6.1.3, 6.2.1
    • None
    • 8
    • 7670db3146 (qt/qtbase/dev) 7670db3146 (qt/tqtc-qtbase/dev) 7670db3146 (qt/tqtc-qtbase/6.3)
    • Team 2 Foundation_Sprint 47, Team 2 Foundation_Sprint 48

    Description

      The full implementation of QVarLengthArray is templated on Prealloc. This makes two QVarLengthArrays of differing Prealloc completely independent types, and all functions are instantiated anew.

      The implementation should split off the Prealloc-dependent parts (the internal buffer and the Prealloc contant itself) from the rest, such that QVLA<T>s with different Preallocs don't generate duplicate executable code.

      The 6.0 is the only opportunity we have for this, until Qt 7.

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: