We present in this chapter the concept of a handle to an object of type T. Basically a handle to an object of type T behaves like a pointer to an object of type T except that it has no increment nor decrement operators and does not deal with memory allocation or deallocation. Essentially a handle has two operators * and -> which gives access to the object pointed to.
|
|
| |
ht references no object.
| |
| |
copy constructor
| |
| |
constructs a reference from a
pointer T*.
|
|
| ht points to the object *pr |
|
| ht and pr point to the same object. |
|
| returns the object pointed to. |
|
| returns a pointer to the object pointed to. |
|
| true if ht and q reference the same object. |
|
| true if ht and hr reference distinct objects. |