Boost logo

Boost :

Subject: Re: [boost] simple range adapter
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-10-05 10:30:34

Neal Becker wrote:
> I'd be surprised if others haven't needed this. While range comes with an
> adapter for plain old C array, it doesn't come with an adapter from that
> other (probably more common!) kind of plain old C array: a pointer and
> length. This seems useful. Maybe add to examples?

Given a pointer to an array p and a size n, your range is [p, p + n[.
There is no need for any adapter.

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