C++'s std::rotate

Dragos Carp via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 11 04:00:40 PDT 2014


>> Correction: This is what I think you mean:
>>
>> bool sliceOf(T)(in T[] part,
>>                in T[] whole)
>> {
>>    return (whole.ptr <= part.ptr &&
>>            part.ptr + part.length <=
>>            whole.ptr + whole.length);
>> }
>
> Yes, of course. I had lhs, rhs and messed up the renaming of 
> those.

https://github.com/dcarp/phobos/compare/sliceOf


More information about the Digitalmars-d mailing list