| class TRefByValue |
A templated class which encapsulates a reference to an object within a wrapper.
The wrapper object can be passed to a function as a value type. This allows a reference to be passed to a function as a value type.
This wrapper object is commonly termed a value reference.
| Public Member Functions | |
|---|---|
| TRefByValue(T &) | |
| operator T &() | |
| Private Member Functions | |
|---|---|
| TRefByValue & | operator=(TRefByValue) |
| Private Attributes | |
|---|---|
| T & | iRef |
| TRefByValue | ( | T & | aRef | ) | [inline] |
Constructs this value reference for the specified referenced object.
| T & aRef | The referenced object. |
| operator T & | ( | ) | [inline] |
Gets a reference to the object encapsulated inside this value reference.