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

Add QOwningBiPointer class

    XMLWordPrintable

Details

    Description

      QBiPointer does not own the object it points to; however, in quite a few places it would make more sense for it to actually own it.

      So introduce
      template<
      class T1,
      class T2,
      class Deleter1 = std::default_delete<T>,
      class Deleter2 = std::default_delete<T>
      > class QOwningBiPtr;

      with the obvious semantics.

      Use the chance to reconsider the API (as<T> instead of asT1 and asT2, non asserting as, more?)

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes