Vc
1.3.2-dev
SIMD Vector Classes for C++
|
|
Helper class to ensure a given alignment.
This class reimplements the new
and delete
operators to align objects allocated on the heap suitably with the specified alignment Alignment
.
Definition at line 67 of file alignedbase.h.
#include <alignedbase.h>
Public Member Functions | |
new/delete overloads for correct alignment | |
void * | operator new (size_t size) |
Allocates correctly aligned memory. | |
void * | operator new (size_t, void *p) |
Returns p . | |
void * | operator new[] (size_t size) |
Allocates correctly aligned memory. | |
void * | operator new[] (size_t, void *p) |
Returns p . | |
void | operator delete (void *ptr, size_t) |
Frees aligned memory. | |
void | operator delete (void *, void *) |
Does nothing. | |
void | operator delete[] (void *ptr, size_t) |
Frees aligned memory. | |
void | operator delete[] (void *, void *) |
Does nothing. | |