Boost logo

Boost :

Subject: Re: [boost] [Concept Check] ContiguousIterator
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2010-10-07 07:52:52

> Took me days to realize you didn't mean the Borland compiler ;-)
> > 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.
> Yeah, it's a purely semantic distinction, so while you *can* refine
> RandomAccessIterator for it, there are no syntactic/structural checks
> you can add... unless, as Rob S points out, you add a trait somewhere
> and make it part of the ContiguousIterator concept.
> --
> Dave Abrahams
> BoostPro Computing

I would be interested in a trait, that could tell at compile time, if an
iterator is a ContiguousIterator.

I write a lot of code in C++, that needs to cooperate with old C code.


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