std.range.equal or == in isPalindrome

Per Nordlöw" <per.nordlow at gmail.com> Per Nordlöw" <per.nordlow at gmail.com>
Tue Feb 18 01:31:54 PST 2014


I'm curious to why we need std.range.equal in cases such as

bool isPalindrome(Range)(in Range range) if 
(isBidirectionalRange!Range)
{
     return range.retro.equal(range);
}

Why isn't equality == operator used here instead?

/Per


More information about the Digitalmars-d-learn mailing list