aboutsummaryrefslogtreecommitdiff
path: root/src/cptr.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cptr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cptr.h b/src/cptr.h
index 138ace8..5aafbd3 100644
--- a/src/cptr.h
+++ b/src/cptr.h
@@ -23,6 +23,16 @@ namespace Bu
23 rCache.decRef( pData ); 23 rCache.decRef( pData );
24 } 24 }
25 25
26 obtype &operator*()
27 {
28 return *pData;
29 }
30
31 obtype *operator->()
32 {
33 return pData;
34 }
35
26 private: 36 private:
27 Bu::Cache<obtype> &rCache; 37 Bu::Cache<obtype> &rCache;
28 obtype *pData; 38 obtype *pData;