+public:
+ /** Makes the RefPtr release its reference of the data without deleting it.
+ Note that if there are other RefPtrs left with the same data, it might
+ still get deleted automatically. */
+ T *release();
+
+ /** Marks the data to not be deleted. This affects all RefPtrs with the
+ same data. */
+ void keep() { if(counts) counts->count |= RefCounts::KEEP; }