reference of array or an array of references?

Started by
2 comments, last by RDragon1 15 years, 7 months ago
In C++, would the following;
 T& array[x] 
be a reference to an array, or an array of references? I'm assuming the former, but how would I go about achieving the other, if it's even a sensible thing to do
Advertisement
It would be an array of references, but would fail to compile because arrays of references are illegal.
Good point, well presented [embarrass]
A reference to an array is

T (&array)[x]

This topic is closed to new replies.

Advertisement