[v3] std::tr1::array testsuite additions, first attempt
Benjamin Kosnik
bkoz@redhat.com
Thu Oct 21 14:43:00 GMT 2004
>Benjamin, is the size comparison pointless here, since both arrays have
>the same _Nm ?
Yes!
>If it is needed, then the call to std::equal will go off the end of two
>if two.size() < one.size() because it's called whether or not the sizes
>are the same. Could use && to short circuit, but I think this is OK:
>
> return std::equal(__one.begin(), __one.end(), __two.begin());
I'll make this change.
Thanks!
-benjamin
More information about the Libstdc++
mailing list