[Alias] Can any interface distinguish two memory location point to different object?

hi,
As we known, the interface isNoAlias can distinguish two memory location must have no alias, but they may still pointer to the same object. For example:
isNoAlias can distinguish two memory location &A[0] and &A[2] have no alias, but they are pointer to the same object A.

You can use getUnderlyingObject to identify the object a pointer points to.

2 Likes

Thanks very much, that is just what I needed