Possible Duplicate:
What's the meaning of * and & when applied to variable names?
How to use & operator? herein i have an example:
Const type& var
Const type & var
Const type &var
what does it mean? Bests
Possible Duplicate:
What's the meaning of * and & when applied to variable names?
How to use & operator? herein i have an example:
Const type& var
Const type & var
Const type &var
what does it mean? Bests
All of them mean the same. It makes no difference to the compiler which one you use.
For the compiler,
All three of those statements create a reference to a constant type.
It is a mere matter of style where to place the &
. Use the style which your coding style/guidelines suggest you to use.