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 <hist_util.h>
Public Member Functions | |
MemStackAllocator (size_t required_size) | |
T * | Get () |
~MemStackAllocator () | |
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 |