Boost logo

Boost :

Subject: Re: [boost] difference_type size()?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-10-20 16:34:29

On Thu, Oct 20, 2011 at 8:15 PM, pavel <paul.cpprules_at_[hidden]> wrote:
> sorry, i misread the initial message
> if the definition of size is how many times one need to ++begin to
> reach end then it's clearly must be something like size_t
> but if size is (end - begin) for random access iterators it well may
> be a signed integer, e.g. ptrdiff_t

Are you trying to imply end - begin can be negative for a valid range?


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