sameTail

fnbool sameTail(T)(in T[] lhs, in T[] rhs) @trusted pure nothrow @nogc

Returns whether the backs of lhs and rhs both refer to the same place in memory, making one of the arrays a slice of the other which end at index `$`.

Parameters

lhsthe first array to compare
rhsthe second array to compare

Returns

true if both arrays are the same length and lhs.ptr == rhs.ptr,

false otherwise.