Function umpire::pointer_contains

Function Documentation

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

Check whether the left allocation contains the right.

right is contained by left if right is greater than left, and right+size is greater than left+size.

Parameters
  • left: Pointer to left allocation

  • right: Poniter to right allocation