sameHead

fnbool sameHead(T)(in T[] lhs, in T[] rhs) @safe pure nothrow @nogc

Returns whether the fronts of lhs and rhs both refer to the same place in memory, making one of the arrays a slice of the other which starts at index 0.

Parameters

lhsthe first array to compare
rhsthe second array to compare

Returns

true if lhs.ptr == rhs.ptr, false otherwise.