The topic generically says it all. Basically in a situation like this:
boost::scoped_array<int> p(new int[10]);
Is there any appreciable difference in performance between doing: &p[0] and p.get()?
I ask because I prefer the first one, it has a more natural pointer like syntax. In fact, it makes it so you could replace p with a native pointer or array and not have to change anything else.
I am guessing since get is a one liner "return ptr;" that the compiler will inline that, and I hope that it is smart enough to to inline operator[] in such a way that it is able to not dereference and then immediately reference.
Anyone know?