FreeTensor
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
freetensor::Allocator< T > Class Template Reference

#include <allocator.h>

Public Types

typedef T value_type
 
typedef std::true_type is_always_equal
 

Public Member Functions

 Allocator ()
 
template<class U >
 Allocator (const Allocator< U > &other)
 
template<class U >
 Allocator (Allocator< U > &&other)
 
T * allocate (size_t n)
 
void deallocate (T *p, size_t n)
 
template<class... Args>
void construct (T *p, Args &&...args)
 

Member Typedef Documentation

◆ is_always_equal

template<class T >
typedef std::true_type freetensor::Allocator< T >::is_always_equal

◆ value_type

template<class T >
typedef T freetensor::Allocator< T >::value_type

Constructor & Destructor Documentation

◆ Allocator() [1/3]

template<class T >
freetensor::Allocator< T >::Allocator ( )
inline

◆ Allocator() [2/3]

template<class T >
template<class U >
freetensor::Allocator< T >::Allocator ( const Allocator< U > &  other)
inline

◆ Allocator() [3/3]

template<class T >
template<class U >
freetensor::Allocator< T >::Allocator ( Allocator< U > &&  other)
inline

Member Function Documentation

◆ allocate()

template<class T >
T * freetensor::Allocator< T >::allocate ( size_t  n)
inline

◆ construct()

template<class T >
template<class... Args>
void freetensor::Allocator< T >::construct ( T *  p,
Args &&...  args 
)
inline

◆ deallocate()

template<class T >
void freetensor::Allocator< T >::deallocate ( T *  p,
size_t  n 
)
inline

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