BitMagic-C++: dbg_ptr_allocator Class Reference

BitMagic-C++

Static Public Member Functions | Static Public Attributes
dbg_ptr_allocator Class Reference

## Static Public Member Functions
static void * | allocate (size_t n, const void *)
static void | deallocate (void *p, size_t)
static int | balance ()

## Static Public Attributes
static unsigned | na_ = 0
static unsigned | nf_ = 0

## Detailed Description

Examples
  sample6.cpp.

Definition at line 75 of file sample6.cpp.

## Member Function Documentation

## ◆ allocate()

static void* dbg_ptr_allocator::allocate | ( | size_t | n,
|  | const void * |
| ) |  |
| inlinestatic

Definition at line 81 of file sample6.cpp.

## ◆ balance()

static int dbg_ptr_allocator::balance | ( |  | ) |
| inlinestatic

Examples
  sample6.cpp.

Definition at line 99 of file sample6.cpp.

Referenced by main().

## ◆ deallocate()

static void dbg_ptr_allocator::deallocate | ( | void * | p,
|  | size_t |
| ) |  |
| inlinestatic

Definition at line 91 of file sample6.cpp.

## Field Documentation

## ◆ na_

unsigned dbg_ptr_allocator::na_ = 0
| static

Examples
  sample6.cpp.

Definition at line 78 of file sample6.cpp.

Referenced by main().

## ◆ nf_

unsigned dbg_ptr_allocator::nf_ = 0
| static

Examples
  sample6.cpp.

Definition at line 79 of file sample6.cpp.

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

- sample6.cpp