Can the return type of the function be obtained from within the function? September 8, 2023 by Tarik Call the function with a decltype. decltype(foo(p)) f{};