Stan Math Library
5.0.0
Automatic Differentiation
|
std library compatible allocator that uses AD stack.
T | type of scalar |
Definition at line 23 of file arena_allocator.hpp.
#include <arena_allocator.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
arena_allocator ()=default | |
arena_allocator (const arena_allocator &rhs)=default | |
template<class U > | |
arena_allocator (const arena_allocator< U > &rhs) | |
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 |
Equality comparison operator. | |
constexpr bool | operator!= (const arena_allocator &) const noexcept |
Inequality comparison operator. | |