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

◆ count_vars_impl() [6/8]

template<typename Tuple , require_tuple_t< Tuple > * = nullptr, typename... Pargs>
size_t stan::math::internal::count_vars_impl ( size_t  count,
Tuple &&  x,
Pargs &&...  args 
)
inline

Count the vars in a tuple, add them to the running total, and count the vars in the remaining arguments.

Template Parameters
TupleA tuple type
PargsTypes of remaining arguments
Parameters
[in]countThe current count of the number of vars
[in]xA tuple containing arguments to count
[in]argsObjects to be forwarded to the recursive call
Returns
The total number of vars

Definition at line 151 of file count_vars.hpp.