About function declarations in functions
We can have function declarations inside of function bodies: void f(double) { cout << "f(double) called"; } void f(int) { cout << "f(int) called"; } void g() { void f(double); //Functions declared in non-namespace scopes do not overload f(1); //Therefore, f(1) will call f(double) } This can be done in order to hide a function… Read More About function declarations in functions