Boost logo

Boost :

Subject: Re: [boost] [Concept Check] ContiguousIterator
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-10-07 08:13:23


On 05/10/10 20:45, joel falcou wrote:
> Using BCC, s there any way to refine RandomAccessIterator so the cocnept
> captures the fact that the address of two consecutive value iterated over
> are contiguous in memory ?
>
> I can't get any proper expression to check for this in a proper way.

Iterators will need to register nominally to the concept. Specialize it
for pointers and any kind of normal vector-like iterator (too bad we
don't have a standardized name for that).

You may want to make sure it works correctly with iterator_adaptor as well.


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