I was wondering what two constant signs on a function parameter does in this case?
void virtual_via_pointer( const Employee * const );
I was wondering what two constant signs on a function parameter does in this case?
void virtual_via_pointer( const Employee * const );
This isn't specific to function parameters.
Means a "mutable pointer to a constant instance of
Employee
".Means a "constant pointer to a mutable instance of
Employee
".Means a "constant pointer to a constant instance of
Employee
".See also the Spiral Rule.