bit::memory
|
This concept defines a manner of injecting and checking memory fences around allocations. More...
Classes | |
class | bit::memory::debug_bounds_checker< FrontSize, BackSize > |
This type is used for checking boundaries around memory allocations to determine if buffer-overflows have occurred. More... | |
class | bit::memory::null_bounds_checker |
This bounds checker performs no operation, and is intended to be used for non-debug variations of the arena_allocator. More... | |
This concept defines a manner of injecting and checking memory fences around allocations.
For type B
to be a BoundsChecker
, it must satisfy the following:
Provided
B
- a BoundsChecker
typeb
- an instance of type B
s
- the size of an allocationp
- a void pointeri
- an allocator_info objectThe following expressions must be well-formed and with the following side-effects:
Prepares a front-fence at the given pointer p
with the size s
Prepares a back-fence at the given pointer p
with the size s
Checks a front-fence at the given pointer p
with the size s
, for allocator i
.
Checks a back-fence at the given pointer p
with the size s
, for allocator i
.
Convertible to std::size_t
– the number of bytes to prepend to an allocation for a front memory fence
Convertible to std::size_t
– the number of bytes to append to an allocation for a back memory fence