alias define (reference)


/ Published in: C++
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.