allow non-const access to wrapped type. Can be dangerous! USE WITH CAUTION!

master
roker 2 years ago
parent af5720bed0
commit d965b3115b

@ -97,10 +97,16 @@ public:
}
const T* operator->() const { return value; }
const T* get() const { return value; }
// dangerous!
T* operator->() { return value; }
T* get() { return value;}
T* move_out() { T* r = value; value=nullptr; return r;}
// only implemented for the datatypes where necessay.
// other implementations can follow if necessary.
T* copy_out();
protected:

Loading…
Cancel
Save