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