libvisiontransfer  4.1.5
Classes | Public Types | Public Member Functions | List of all members
AlignedAllocator< T, alignment > Class Template Reference

STL-compatible allocator for memory-aligned allocations. More...

#include <visiontransfer/alignedallocator.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 AlignedAllocator (AlignedAllocator const &)
 
template<typename U >
 AlignedAllocator (AlignedAllocator< U > const &)
 
pointer address (reference r)
 
const_pointer address (const_reference r)
 
pointer allocate (size_type cnt, typename std::allocator< void >::const_pointer=0)
 
void deallocate (pointer p, size_type)
 
size_type max_size () const
 
void construct (pointer p, const T &t)
 
void destroy (pointer p)
 

Detailed Description

template<typename T, int alignment = 32>
class AlignedAllocator< T, alignment >

STL-compatible allocator for memory-aligned allocations.

This is a helper class that is used internally for allocating memory that can be used with aligned SSE / AVX instructions.

Definition at line 29 of file alignedallocator.h.


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