Contents

isIdentical(to:)

Returns a Boolean value indicating whether two instances refer to the same memory region.

Declaration

func isIdentical(to other: Span<Element>) -> Bool

Parameters

  • other:

    A span to compare with this one.

Return Value

Whether self and other reference the same region in memory.

Discussion

Two spans are identical if they reference the same starting address and have the same number of elements.