
3 Sep
2007
3 Sep
'07
2:42 p.m.
I think the crux of the issue is why "there are many interfaces" taking raw pointers of any kind?
I agree but i believe the answer is portability across different languages. There is no alternative for arrays unless you want to call that function once for each element in the array, but that could make the whole process much less efficient. What if vector had a member function returning &v[0] when v.size()>0 and 0 otherwise ? But that's another story !