empty slices: defined?

DJ Delorie dj@redhat.com
Mon Nov 7 19:51:00 GMT 2005


> I guess the question I have is what would you do with an empty
> slice?  What useful purpose does it serve?

Nobody said it was useful, but that doesn't mean someone won't find a
use for it somewhere.  Fortunately, I wasn't asking it if was useful,
just legal ;-)

> In general, valarray is specificed in such a way that its
> implementation shall not check for "boundary" conditions.

I was hoping to get a "the spec says thusly" type of response.
*Where* in the spec does it say it doesn't check for boundary
conditions?



More information about the Libstdc++ mailing list