In C++11 the following function declaration:
int f(void);
means the same as:
int f();
A pa
This comes to C++ from C. In C f() means unknown number and type of parameters. So in C for no parameters there is f( void ).
f()
f( void )
In C++ it's redundant: f() and f( void ) mean same thing - a function that has no parameters.