Boost logo

Boost :

Subject: Re: [boost] difference_type size()?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-10-19 16:35:15


On Wed, Oct 19, 2011 at 10:29 PM, Jeffrey Lee Hellrung, Jr.
<jeffrey.hellrung_at_[hidden]> wrote:
>> How is difference_type relevant?
>>
>
> I was just making an analogy...  Honestly, I'd be surprised if there were

Ah

> any practical problems with using std::size_t, but likewise I'd be surprised
> if there were any practical problems with always using std::ptrdiff_t for
> difference_type.

Probably not, but as there's iterator_traits<>::difference_type,
there's no need to always use std::ptrdiff_t.
Maybe size_type should be added in TR2? :p

Olaf


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