Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ make_unsafe_chainable_ptr()

template<typename T >
auto stan::math::make_unsafe_chainable_ptr ( T &&  obj)

Store the given object in a chainable_object so it is destructed only when the chainable stack memory is recovered and return a pointer to the underlying object This function differs from make_chainable_object in that this class does not evaluate expressions.

Template Parameters
Ttype of object to hold
Parameters
objobject to hold
Returns
pointer to object held in chainable_object

Definition at line 113 of file chainable_object.hpp.