AMDG
Robert Jones wrote:
Robert Jones wrote:
I am shocked to discover that boost::begin() etc, does not seem toHow would boost::end be implemented?
work for boost::scoped_array.
Is there a reason for this?
boost::scoped_array doesn't know the size of the array.
Quite. So there would seem to be quite a bit of benefit to having
scoped_array hold its
own size. I guess the objection might be that it makes scoped_array bigger
than a c-array,
but the difference is pretty small.
But if you don't care about small differences, why use
scoped_array instead of std::vector?