diff options
author | Giacomo Gabrielli <giacomo.gabrielli@arm.com> | 2018-10-22 17:21:45 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-12-03 16:25:54 +0000 |
commit | 22ce855108cb8a1ebadbd28448b623c470f86d5c (patch) | |
tree | 288b7401cbfc28369542507fde8d692c858ff91f | |
parent | ab31213316a6334660eff8fa47434c0e25f2b5c0 (diff) | |
download | gem5-22ce855108cb8a1ebadbd28448b623c470f86d5c.tar.xz |
base: Add type alias for raw pointer in RefCountingPtr
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>
-rw-r--r-- | src/base/refcnt.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh index f2821231d..197e41832 100644 --- a/src/base/refcnt.hh +++ b/src/base/refcnt.hh @@ -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. */ /** @{ */ |