Vector Optimized Library of Kernels  3.1.2
Architecture-tuned implementations of math kernels
volk::alloc< T > Struct Template Reference

C++11 allocator using volk_malloc and volk_free. More...

#include <volk_alloc.hh>

Public Types

typedef T value_type
 

Public Member Functions

 alloc ()=default
 
template<class U >
constexpr alloc (alloc< U > const &) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *p, std::size_t) noexcept
 

Detailed Description

template<class T>
struct volk::alloc< T >

C++11 allocator using volk_malloc and volk_free.

adapted from https://en.cppreference.com/w/cpp/named_req/Alloc

Member Typedef Documentation

template<class T>
typedef T volk::alloc< T >::value_type

Constructor & Destructor Documentation

template<class T>
volk::alloc< T >::alloc ( )
default
template<class T>
template<class U >
constexpr volk::alloc< T >::alloc ( alloc< U > const &  )
inlinenoexcept

Member Function Documentation

template<class T>
T* volk::alloc< T >::allocate ( std::size_t  n)
inline
template<class T>
void volk::alloc< T >::deallocate ( T *  p,
std::size_t   
)
inlinenoexcept

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