xgboost
|
A C-style array with in-stack allocation. As long as the array is smaller than MaxStackSize, it will be allocated inside the stack. Otherwise, it will be heap-allocated. More...
#include <threading_utils.h>
Public Member Functions | |
MemStackAllocator (size_t required_size) | |
MemStackAllocator (size_t required_size, T init) | |
~MemStackAllocator () | |
T & | operator[] (size_t i) |
T const & | operator[] (size_t i) const |
A C-style array with in-stack allocation. As long as the array is smaller than MaxStackSize, it will be allocated inside the stack. Otherwise, it will be heap-allocated.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |