Return to Snippet

Revision: 766
at August 4, 2006 10:36 by yuconner


Updated Code
//<type> &<alias> = <reference var>
//<type> &<alias>

//Example:
   int a; 
   int &r = a; // declares a reference to the integer object "a"

Revision: 765
at August 4, 2006 10:33 by yuconner


Initial Code
int value;    // declares an integer
int &a_value = value; // declares a reference to the integer object value

Initial URL

                                

Initial Description
Another name for the same thing
// & = 
// &

Initial Title
alias define (reference)

Initial Tags

                                

Initial Language
C++