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

◆ make_chainable_ptr()

template<typename T >
auto stan::math::make_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.

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

Definition at line 60 of file chainable_object.hpp.