What does <void (void)> mean in template arguments
2 answers
This means that the type parameter is a type of function (note, not the function pointer, but the type of function), which takes no parameters and does not return a value.
You can even define function parameters this way:
void f (void(void)); This will decay to the function pointer during transmission (just like an array parameter decays to a pointer).
+6