Boost logo

Boost :

Subject: Re: [boost] Dereferencing End Iterators (Was: Performance Tuning?)
From: Christopher Jefferson (chris_at_[hidden])
Date: 2009-07-22 13:02:55

On 22 Jul 2009, at 16:23, Stewart, Robert wrote:
>> Ultimately are random access iterators *supposed* to be homeomorphic
>> to the integers in the same (apparent) way C indices are?

I'm sure that:

int a[3]
int* b = a + 4;

Is illegal C code, as you have gone outside the bounds of your array,
even if you never dereference the pointer.


Boost list run by bdawes at, gregod at, cpdaniel at, john at