|
Boost Users : |
Subject: Re: [Boost-users] A forward iterator need not be default-constructible
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-10-03 14:25:42
On Mon, 3 Oct 2011, Dave Abrahams wrote:
>
> on Mon Oct 03 2011, Jeremiah Willcock <jewillco-AT-osl.iu.edu> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net