
3 Oct
2011
3 Oct
'11
6:25 p.m.
On Mon, 3 Oct 2011, Dave Abrahams wrote:
on Mon Oct 03 2011, Jeremiah Willcock
wrote: Another complicating issue is that an iterator is singular or non-singular with respect to a particular container. For example, given the following declarations:
int a[5], b[5];
and assuming a and b are contiguous in memory, &a[5] is a singular iterator for the array a
It's a PTE iterator, which is not minimally singular.
Yes, I forgot that, although the issue of dereferenceability is similar, and &a[5] + 1 (== &b[1]) has a similar issue with singularity. -- Jeremiah Willcock