There is actually a way to do this with a single comparison.
```d
cast(size_t)(p - cached_pool_baseAddr) < cached_pool_topAddr - cached_pool_baseAddr
```