P3952R0 — is_pointer_in_range
Herb Sutter, Glen Joseph Fernandes
EWGLEWG
WG21 is often asked for a way to reliably answer the question, “does this raw pointer point inside this buffer?” See [Core 2025] for some use cases. Such an `is_pointer_in_range` function is appropriate to standardize because: