acquire index of type in parameter pack