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

QVarLengthArray: add missing STL-style assign()

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      See epic for more details.

      Acceptance criteria:

      • QVLA has an assign() overload set following std::vector's (https://en.cppreference.com/w/cpp/container/vector/assign), except for the C++20 constexpr
      • For a QVLA that has sufficient capacity() to hold the result of the operation, these functions do not allocate additional memory.
      • All functions are strongly exception safe if value_type copy construction doesn't throw.

        Attachments

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

          Activity

            People

            Assignee:
            cnn Qt Core & Network
            Reporter:
            mmutz Marc Mutz
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes