int v[1]; auto p1 = v; auto &p2 = v; auto *p3 = v;
p1 is of type int * (the same for p3 ). In particular, in this trivial example, I find p2 ( int (&)[1] ) more useful, since it is inherent in the semantics of the array, for example. I can apply sizeof on p2 to give the same thing as sizeof on v .
Is there a standard quote regarding this?
Why is link rejection a bad idea? (for this case of arrays, I mean that almost no C ++ programmer cares about them these days anyway ...)
c ++ c ++ 11 templates auto type-deduction
pepper_chico
source share