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

QList: add missing STL-style assign()

XMLWordPrintable

    • 5
    • bbbe5f45c (dev), 8712e35ae (dev), 782ccc6de (dev), 3db9ef358 (dev), 45bf63676 (6.6)
    • Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 76, Foundation Sprint 77, Foundation Sprint 78, Foundations Sprint 79, Foundations Sprint 80, Foundation Sprint 81, Foundation Sprint 82

      See epic for more details.

      Acceptance criteria:

      • QList has an assign() overload set following std::vector's (https://en.cppreference.com/w/cpp/container/vector/assign), except the C++20 constexpr, and using QList::parameter_type instead of const T&.
      • For a QList that is not shared and has sufficient capacity() to hold the result of the operation, these functions do not allocate additional memory.
      • Otherwise, equivalent to *this = QList(~~~args~~~).

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

            dennisoberst Dennis Oberst
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes