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

QVarLengthArray: add missing STL-style assign()

    XMLWordPrintable

Details

    • 5
    • 7cbdc8abb (dev), 87e90a265 (dev), 8712e35ae (dev)
    • Foundation Sprint 72, Foundation Sprint 73, Foundation Sprint 74, Foundation Sprint 75

    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

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes