38 #ifdef USE_MOVE_SEMANTICS 59 this->reassign(move(from));
62 #endif // USE_MOVE_SEMANTICS 82 return *((To *)(this->_void_ptr));
93 return (To *)(this->_void_ptr);
108 operator T * ()
const {
109 return (To *)(this->_void_ptr);
125 return (To *&)(this->_void_ptr);
138 return (To *)(this->_void_ptr);
211 #ifdef USE_MOVE_SEMANTICS 244 this->reassign(move(from));
256 this->reassign(move(from));
259 #endif // USE_MOVE_SEMANTICS 269 return *((To *)(this->_void_ptr));
280 return (To *)(this->_void_ptr);
295 operator
const T * ()
const {
296 return (To *)(this->_void_ptr);
312 return (
const To *&)(this->_void_ptr);
325 return (To *)(this->_void_ptr);
336 this->reassign((To *)ptr);
const T *& cheat()
Returns a reference to the underlying pointer.
This is the base class for PointerTo and ConstPointerTo.
const To * p() const
Returns an ordinary pointer instead of a ConstPointerTo.
To * p() const
Returns an ordinary pointer instead of a PointerTo.
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing...
PointerTo is a template class which implements a smart pointer to an object derived from ReferenceCou...
T *& cheat()
Returns a reference to the underlying pointer.