#include <type_traits>

void f() {}

int main()
{
    using FunctionPtr = std::add_pointer<void()>::type;

    FunctionPtr ptr = f;
}