templated argument deduction samplex