1#ifndef STAN_MATH_REV_CORE_ARENA_ALLOCATOR_HPP
2#define STAN_MATH_REV_CORE_ARENA_ALLOCATOR_HPP
T * alloc_array(size_t n)
Allocate an array on the arena of the specified size to hold values of the specified template paramet...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
static thread_local AutodiffStackStorage * instance_
T * allocate(std::size_t n)
Allocates space for n items of type T.
void deallocate(T *, std::size_t) noexcept
No-op.
constexpr bool operator!=(const arena_allocator &) const noexcept
Inequality comparison operator.
constexpr bool operator==(const arena_allocator &) const noexcept
Equality comparison operator.
arena_allocator(const arena_allocator &rhs)=default
arena_allocator(const arena_allocator< U > &rhs)
arena_allocator()=default
std library compatible allocator that uses AD stack.