Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Would it make any sense to template the function object class below? ( i . e . Would anyone ever need to scale anything besides
Would it make any sense to template the function object class below? ie Would anyone ever need to scale anything besides doubles or their immediate builtin subsets?
class Scale
double scalefactor;
public:
Scale double actual, double desired
: scalefactordesired actual
double operator double a const
return a scalefactor ;
void setscaling double actual, double desired
scalefactor desired actual ; return ;
void setscaling double multiple
scalefactor multiple ; return ;
;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started