Boost logo

Boost :

From: Bo Persson (bop_at_[hidden])
Date: 2007-09-03 11:51:33


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk