I know that
f(const T& obj) // (1)
g(T const& obj) // (2)
are the same .( We can't change the value of obj in the body of f
and g
).
But what
h(T & const) // (3)
realy means ?
Another example :
k(T const * const & const obj_p) // (4)
first const : You can not change the value of actual obj (*obj_p)
second const: You can not change the value of *
(obj_p)
third const : ?