Posted By

yuconner on 08/04/06


Tagged

alias


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

copyleft
khouser


alias define (reference)


 / Published in: C++
 

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

  1. //<type> &<alias> = <reference var>
  2. //<type> &<alias>
  3.  
  4. //Example:
  5. int a;
  6. int &r = a; // declares a reference to the integer object "a"

Report this snippet  

You need to login to post a comment.