"IndexType" for ranges
monarchdodra at gmail.com
Tue Oct 2 09:47:21 PDT 2012
On Tuesday, 2 October 2012 at 16:44:48 UTC, monarch_dodra wrote:
> On Tuesday, 2 October 2012 at 16:09:16 UTC, Peter Alexander
>> On Tuesday, 2 October 2012 at 13:17:45 UTC, monarch_dodra
>>> If you've ever worked on a template that needs to index a
>>> range, you may have run into this problem: What is the type
>>> you should use to index an RA range?
>> Forgive my ignorance. What's wrong with size_t?
> This is what happens when you use size_t:
On a side note, SortedRange is pretty bold at assuming the range
is slice-able. Gonna fix that.
More information about the Digitalmars-d