For an assignment, we're supposed to write two methods for handling outputs. One for outputting strings, and one for integers.
Basically we have two methods calling another method:
void TheClass::displayString(string str){ cout << str; }
void TheClass::displayNumber(int n) { cout << n; }
Will inline speed things up by saving some overhead by not calling yet another function or will it create more in regards to namespaces and such for cout?
inline void TheClass::displayString(string str) { cout << str; }
inline void TheClass::displayNumber(int n) { cout << n; }