Skip to content

Class Ase::Loft::Allocator

template <typename T>

ClassList > Ase > Loft > Allocator

Allocator for STL containers.

  • #include <loft.hh>

Inherits the following classes: Ase::Loft::AllocatorBase

Public Types

Type Name
typedef T value_type

Public Static Attributes

Type Name
constexpr bool allows_read_after_free = = true

Public Functions

Type Name
Allocator () noexcept
Allocator (const Allocator< U > & other) noexcept
constexpr T * allocate (std::size_t n) const
constexpr void deallocate (T * p, size_t n) noexcept const
bool operator!= (const Allocator< T > & o) noexcept const
bool operator== (const Allocator< T > & o) noexcept const

Protected Static Functions inherited from Ase::Loft::AllocatorBase

See Ase::Loft::AllocatorBase

Type Name
void * loft_btalloc (size_t size, size_t align)
Alloc in a fashion similar to malloc(), using boundary tags.
void loft_btfree (void * p, size_t size)
Free memory allocted from loft_btalloc() .

Public Types Documentation

typedef value_type

using Ase::Loft::Allocator< T >::value_type =  T;

Public Static Attributes Documentation

variable allows_read_after_free

constexpr bool Ase::Loft::Allocator< T >::allows_read_after_free;

Public Functions Documentation

function Allocator [1/2]

Ase::Loft::Allocator::Allocator () noexcept

function Allocator [2/2]

template<typename U>
inline Ase::Loft::Allocator::Allocator (
    const Allocator < U > & other
) noexcept

function allocate

inline constexpr T * Ase::Loft::Allocator::allocate (
    std::size_t n
) const

function deallocate

inline constexpr void Ase::Loft::Allocator::deallocate (
    T * p,
    size_t n
) noexcept const

function operator!=

inline bool Ase::Loft::Allocator::operator!= (
    const Allocator < T > & o
) noexcept const

function operator==

inline bool Ase::Loft::Allocator::operator== (
    const Allocator < T > & o
) noexcept const


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/loft.hh