Vc  1.4.1
SIMD Vector Classes for C++
AlignedBase< Alignment > Struct Template Reference

Detailed Description

template<std::size_t Alignment>
struct Vc::AlignedBase< Alignment >

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.

See also
Vc::VectorAlignedBase
Vc::MemoryAlignedBase

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.
 

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