FE 0.5.0
A header-only C++ library for writing frontends
Loading...
Searching...
No Matches
fe::Arena::Allocator< T > Struct Template Reference

#include <fe/arena.h>

Public Types

using value_type = T
 

Public Member Functions

 Allocator ()=delete
 
template<class U >
 Allocator (const Arena::Allocator< U > &allocator) noexcept
 
 Allocator (Arena &arena) noexcept
 
T * allocate (size_t num_elems)
 
void deallocate (T *, size_t) noexcept
 
template<class U >
bool operator== (const Allocator< U > &a) const noexcept
 
template<class U >
bool operator!= (const Allocator< U > &a) const noexcept
 

Public Attributes

Arenaarena
 

Detailed Description

template<class T>
struct fe::Arena::Allocator< T >

Definition at line 26 of file arena.h.

Member Typedef Documentation

◆ value_type

template<class T >
using fe::Arena::Allocator< T >::value_type = T

Definition at line 27 of file arena.h.

Constructor & Destructor Documentation

◆ Allocator() [1/3]

template<class T >
fe::Arena::Allocator< T >::Allocator ( )
delete

◆ Allocator() [2/3]

template<class T >
template<class U >
fe::Arena::Allocator< T >::Allocator ( const Arena::Allocator< U > &  allocator)
inlinenoexcept

Definition at line 31 of file arena.h.

◆ Allocator() [3/3]

template<class T >
fe::Arena::Allocator< T >::Allocator ( Arena arena)
inlinenoexcept

Definition at line 33 of file arena.h.

Member Function Documentation

◆ allocate()

template<class T >
T * fe::Arena::Allocator< T >::allocate ( size_t  num_elems)
inline

Definition at line 36 of file arena.h.

References fe::Arena::allocate(), and fe::Arena::Allocator< T >::arena.

◆ deallocate()

template<class T >
void fe::Arena::Allocator< T >::deallocate ( T *  ,
size_t   
)
inlinenoexcept

Definition at line 38 of file arena.h.

◆ operator!=()

template<class T >
template<class U >
bool fe::Arena::Allocator< T >::operator!= ( const Allocator< U > &  a) const
inlinenoexcept

Definition at line 41 of file arena.h.

References fe::Arena::Allocator< T >::arena.

◆ operator==()

template<class T >
template<class U >
bool fe::Arena::Allocator< T >::operator== ( const Allocator< U > &  a) const
inlinenoexcept

Definition at line 40 of file arena.h.

References fe::Arena::Allocator< T >::arena.

Member Data Documentation

◆ arena


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