cpp: added example of calling different functions depends on type
 - useful when we have some minor logic changes ex.(FuncNamef() & FuncName())