bit::memory
Public Member Functions | Static Public Attributes | List of all members
bit::memory::debug_bounds_checker< FrontSize, BackSize > Class Template Reference

This type is used for checking boundaries around memory allocations to determine if buffer-overflows have occurred. More...

#include <debug_bounds_checker.hpp>

Public Member Functions

void prepare_front_fence (void *p, std::size_t size) noexcept
 
void prepare_back_fence (void *p, std::size_t size) noexcept
 
void check_front_fence (const allocator_info &info, void *p, std::size_t size) noexcept
 
void check_back_fence (const allocator_info &info, void *p, std::size_t size) noexcept
 

Static Public Attributes

static constexpr std::size_t front_size = FrontSize
 
static constexpr std::size_t back_size = BackSize
 

Detailed Description

template<std::size_t FrontSize, std::size_t BackSize = FrontSize>
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.

On any failure, the buffer overflow handler will be called

Satisfies
BoundsChecker

Definition at line 56 of file debug_bounds_checker.hpp.


The documentation for this class was generated from the following file: