Stan Math Library
4.9.0
Automatic Differentiation
|
auto stan::math::internal::holder_handle_element | ( | T && | a, |
T *& | res | ||
) |
Handles single element (moving rvalue non-expressions to heap) for construction of holder
or holder_cl
from a functor.
Rvalue non-expression is moved to heap and the pointer to heap memory is assigned to res and returned in a tuple.
T | type of the element |
a | element to handle |
res | resulting pointer to element |
Definition at line 287 of file holder.hpp.