true if lhs.ptr == rhs.ptr, false otherwise.bool sameHead(T)(in T[] lhs, in T[] rhs) @safe pure nothrow @nogcReturns 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.
lhs | the first array to compare |
rhs | the second array to compare |
true if lhs.ptr == rhs.ptr, false otherwise.