The approach based on std::tie
is also worth knowing. It is especially useful for accessing a particular item from the parameter pack, which is a related problem.
template<int index, typename...Args>
void example(Args&&... args) {
auto& arg = std::get<index>(std::tie(args...));
}