0
Is there any pattern to solve the following problem...
Is there any pattern to solve the following problem: same functions with different types https://code.sololearn.com/cPhcoon5Kb68/?ref=app
3 Antworten
0
Are you possibly looking for function templates?
https://en.cppreference.com/w/cpp/language/function_template
First answer:
"...a template, which allows you to instantiate functions with different types at compile time:"
https://stackoverflow.com/questions/22127041/c-pass-variable-type-to-function
0
I need the _Pow_ () function to non-template