Boost logo

Boost :

Subject: Re: [boost] [range] Proposal: addition of front(), back(), at(), operator[]
From: Eric Niebler (eniebler_at_[hidden])
Date: 2014-03-26 12:50:16


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/25/2014 01:50 PM, Marshall Clow wrote:
>
> On Mar 24, 2014, at 10:36 AM, Marshall Clow <mclow.lists_at_[hidden]>
> wrote:
>> Interesting. I think that in C++14, the committee put that
>> possibility to bed. See LWG issue 2360
>> http://cplusplus.github.io/LWG/lwg-defects.html#2360
>>
>> I’ll open an issue that gets that cleared up.
>
> Thinking about this some more, I think that “may” is the key
> there.
>
> [forward.iterators] says: • 6 If a and b are both dereferenceable,
> then a == b if and only if *a and *b are bound to the same object.
>
> which disallows “stashing iterators” for forward (or greater)
> iterators.
>
> So, I think that [iterator.requirements.general] 9 can only really
> be true for input iterators.

That's always been my understanding.

\e

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTMwVEAAoJEAeJsEDfjLbX2UQH/3xdwzJFwq77IYIwaa20hcMY
eRB3oqjc7SBDgwfA/rxrmnyjk1VZTO16zV4SsSWhBNLgN6UV6GhgECguoD6Ru6VG
BWHZQqPp+o6dsxjIntMtPSipqIs+nZTQpw7SkNGqsQ2VpUqb/rlUCT22MslKqWtU
j/BnmtFGZpuQ/OXsiQGeJwQPwLDAj1qo/J+TUJymJ58nU8BAL/doSVDfKKkJR3xA
02HdjXx62upeDdw35fXCkaAMvVa/uzS1En4cajTKVQkzhkZRw81TxCVmYVXG6nbL
Fdb7hxRWkC8F6wbxeNuF5cRQ4upYBhD4Tnl0NkF8oIh1W2G9bSG9KTTvn/yPGFg=
=ChA8
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk