Meaning of this function pointer related statement in C++

  c++, function-pointers

I was reading some code where they made a queue of function pointers which return void and take no parameters. Then there was this statement (second line in following listing) which I cannot understand what it is doing.

auto func = queue.pop(); //pop would return a function pointer 
(*func)(); // What is this statement doing?

Is it just calling the function?

Source: Windows Questions C++

LEAVE A COMMENT