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

◆ make_holder_impl_construct_object()

template<typename T , std::size_t... Is, typename... Args>
auto stan::math::internal::make_holder_impl_construct_object ( T &&  expr,
std::index_sequence< Is... >  ,
const std::tuple< Args *... > &  ptrs 
)

Second step in implementation of construction holder from a functor.

Constructs holder object form given expression and tuple of pointers.

Template Parameters
Ttype of the result expression
Isindex sequence for ptrs
Argstypes of pointes to heap
Parameters
exprresult expression
ptrspointers to heap that need to be released when the expression is destructed
Returns
holder referencing given expression

Definition at line 310 of file holder.hpp.