Nope, it is not possible. You should input something into variable and pass it into function. (Technically it is possible to do something similar using templated function wrapper, but it is a perversion.)