CS::Memory::AllocatorAlign< A > Class Template Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Static Public Member Functions
CS::Memory::AllocatorAlign< A > Class Template Reference

This class implements an allocator policy which aligns the first element on given byte boundary. More...

`#include <csutil/allocator.h>`

List of all members.

## Static Public Member Functions
static void * | Alloc (size_t size)
| Allocate a raw block of given size.
static void | Free (void *p)
| Free a block.

## Detailed Description

### template<size_t A = 1>
class CS::Memory::AllocatorAlign< A >

This class implements an allocator policy which aligns the first element on given byte boundary.

It has a per-block overhead of `sizeof(void*)+alignment' bytes.

Definition at line 434 of file allocator.h.

## Member Function Documentation

template<size_t A = 1>

static void* CS::Memory::AllocatorAlign< A >::Alloc | ( | size_t | size | ) | `[inline, static]`

Allocate a raw block of given size.

Definition at line 440 of file allocator.h.

template<size_t A = 1>

static void CS::Memory::AllocatorAlign< A >::Free | ( | void * | p | ) | `[inline, static]`

Free a block.

Remarks:
  Does not check that the block pointer is valid.

Definition at line 449 of file allocator.h.

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

- csutil/allocator.h