Expression Templates Library (ETL)
Classes | Namespaces | Functions | Variables
allocator.hpp File Reference

Contains allocation utilities. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  etl::mangling_faker< T >
 Use of this type in the parameter with the size of a vector type fakes mangling. More...
 
struct  etl::aligned_allocator< A >
 Allocated for aligned memory. More...
 
struct  etl::aligned_ptr< T, S >
 RAII wrapper for allocated aligned memory. More...
 

Namespaces

 etl
 Root namespace for the ETL library.
 

Functions

template<typename T , size_t S = sizeof(T)>
auto etl::allocate (size_t size, mangling_faker< S >=mangling_faker< S >())
 Allocate an array of the given size for the given type. More...
 
template<typename T , size_t S = sizeof(T)>
T * etl::aligned_allocate (size_t size, mangling_faker< S >=mangling_faker< S >())
 Allocate an aligned rray of the given size for the given type. More...
 
template<typename T , size_t S = sizeof(T)>
void etl::aligned_release (T *ptr, mangling_faker< S >=mangling_faker< S >())
 Release some aligned memory. More...
 
template<typename T , size_t S = sizeof(T)>
aligned_ptr< T > etl::aligned_allocate_auto (size_t size, mangling_faker< S >=mangling_faker< S >())
 Allocate an aligned rray of the given size for the given type. More...
 

Variables

template<typename T >
concept etl::is_mangle_able
 Test if the given type can be mangled correctly. More...
 

Detailed Description

Contains allocation utilities.