partition(range, leftsubrange) or partition(range, rightsubrange)
Sergey Gromov
snake.scaly at gmail.com
Wed Sep 10 16:14:02 PDT 2008
superdan <super at dan.org> wrote:
> got a question on this range stuff. in stl partition is partition
> (begin, mid, end). neat. in std.algorithm partition is partition(range,
> mid). so-so. never like it mucho. in the new stuff with ranges n all
> there are two choices partition(range, leftsubrange) or partition(range,
> rightsubrange). question is, is there a better choice between the two or
> are they just the same. would be cool to have a clear rule with some
> advantage. and that's easy to remember too.
>
> like steve i think ranges are cool n all but fraid iterators are still
> good at sumthin'. either-way choices ain't a good sign.
Two is too little a number, don't you think? ;) I'd better off with 4.
partition(range, mid); // mid here is an empty range
partition(leftsubrange, rightsubrange);
I personally prefer the mid thing.
More information about the Digitalmars-d-announce
mailing list