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 as a pointer to an object of type T, except that it has no increment or decrement operators. A handle has two operators and , which give 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 points to the same object. |
|
| sets ht to reference no object. |
|
| returns the object pointed to. |
|
| returns a pointer to the object pointed to. |
|
| deallocates the memory referenced by ht. |
|
| true if ht references no object. |
|
| true if ht and q reference the same object. |
|
| true if ht and hr reference distinct objects. |