Function CE::Memory::Pointers::is_in_range(const void *, const void *, const void *)
Defined in File pointers.h
Function Documentation
-
inline bool CE::Memory::Pointers::is_in_range(const void *start, const void *end, const void *address)
Tests pointer membership in a half-open comparable pointer range.
- Parameters:
start – Inclusive pointer bound.
end – Exclusive pointer bound.
address – Pointer to compare; no pointed-to object is accessed.
- Returns:
Result of the built-in ordered pointer comparisons.
- Pre:
The pointers form a range for which those comparisons are meaningful; this does not validate unrelated allocations or extend their lifetime.