base: Add type alias for raw pointer in RefCountingPtr
authorGiacomo Gabrielli <giacomo.gabrielli@arm.com>
Mon, 22 Oct 2018 16:21:45 +0000 (17:21 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 3 Dec 2018 16:25:54 +0000 (16:25 +0000)
Change-Id: Ied2204566a8fc5c34fb4702301051b8e5ab84ffe
Signed-off-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13717
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/base/refcnt.hh

index f2821231d98ce71d04b9b0b06edc7ec0faabc06b..197e418328012ea4a1ce0f524909f60da4f81382 100644 (file)
@@ -119,6 +119,9 @@ class RefCounted
 template <class T>
 class RefCountingPtr
 {
+  public:
+    using PtrType = T*;
+
   protected:
     /** Convenience aliases for const/non-const versions of T w/ friendship. */
     /** @{ */