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

7th Oct 2018, 3:21 PM
King Sam
King Sam - avatar
3 ответов
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
7th Oct 2018, 5:31 PM
Kirk Schafer
Kirk Schafer - avatar
0
I need the _Pow_ () function to non-template
8th Oct 2018, 3:39 AM
King Sam
King Sam - avatar
21st Jul 2020, 1:13 AM
shubham kumar
shubham kumar - avatar