
5 Oct
2009
5 Oct
'09
2:30 p.m.
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.