Consider the following function in C++11:
template<class Function, class... Args, typename ReturnType = /*SOMETHING*/>
inline ReturnType apply(Function&& f, const Args&... args);
I want ReturnType
to be equal to the result type of f(args...)
What do I have to write instead of /*SOMETHING*/
?
decltype(f(args...))
do it?