Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage

This commit is contained in:
Nathan Sashihara 2020-08-02 09:54:29 -07:00 committed by The Dlang Bot
parent a4d8029c48
commit 453faadf5b
31 changed files with 169 additions and 173 deletions

View file

@ -1942,7 +1942,7 @@ ElementEncodingType!(ElementType!RoR)[] join(RoR, R)(RoR ror, scope R sep)
if (isInputRange!RoR &&
isInputRange!(Unqual!(ElementType!RoR)) &&
isInputRange!R &&
is(Unqual!(ElementType!(ElementType!RoR)) == Unqual!(ElementType!R)))
is(immutable ElementType!(ElementType!RoR) == immutable ElementType!R))
{
alias RetType = typeof(return);
alias RetTypeElement = Unqual!(ElementEncodingType!RetType);