
3 Sep
2007
3 Sep
'07
3:51 p.m.
Benoit wrote: ::: 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. The C++ way is of course to use a start,end pair, not start+size. This works in other languages as well. :: :: What if vector had a member function returning &v[0] when :: v.size()>0 :: and 0 otherwise ? It soon will! :-) Bo Persson