#include <type_traits>

int f(int); // we deduce the returning type of this function

int main()
{
    std::result_of<decltype(f)>::type x;
}