BitMagic-C++
Static Public Member Functions
bm::block_allocator Class Reference

Default malloc based bitblock allocator class. More...

#include <bmalloc.h>

Static Public Member Functions

static bm::word_tallocate (size_t n, const void *)
 The member function allocates storage for an array of n bm::word_t elements, by calling malloc. More...
 
static void deallocate (bm::word_t *p, size_t) BMNOEXCEPT
 The member function frees storage for an array of n bm::word_t elements, by calling free. More...
 

Detailed Description

Default malloc based bitblock allocator class.

Functions allocate and deallocate conform to STL allocator specs.

Definition at line 57 of file bmalloc.h.

Member Function Documentation

◆ allocate()

static bm::word_t* bm::block_allocator::allocate ( size_t  n,
const void *   
)
inlinestatic

The member function allocates storage for an array of n bm::word_t elements, by calling malloc.

Returns
pointer to the allocated memory.

Definition at line 65 of file bmalloc.h.

References BM_ALLOC_ALIGN.

◆ deallocate()

static void bm::block_allocator::deallocate ( bm::word_t p,
size_t   
)
inlinestatic

The member function frees storage for an array of n bm::word_t elements, by calling free.

Definition at line 87 of file bmalloc.h.


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