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

QList: add missing STL-style assign()

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None
    • 5
    • Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 76, Foundation Sprint 77, Foundation Sprint 78, Foundations Sprint 79

      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:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes