Function umpire::pointer_overlaps

Function Documentation

bool umpire::pointer_overlaps(void *left, void *right)

Check whether the right allocation overlaps the left.

right will overlap left if the right is greater than left, but less than left+size, and right+size is strictly greater than left+size.

Parameters
  • left: Pointer to left allocation

  • right: Poniter to right allocation